Quantcast
Channel: 質問!ITmedia 新着質問(Java/253)
Viewing all articles
Browse latest Browse all 2439

javaのbyte配列をint配列に変換ルーチン

$
0
0
byte配列をint配列に変換するルーチンを考えましたが、今ひとつ スマートで無いような気がします。 Q1)より良い、方法があればお教えください。 ============================= public static int[] byte_intArray(byte aaa[]) { ByteBuffer buffer = ByteBuffer.wrap(aaa); int NN=aaa.length/4; int wk[]=new int[NN]; for(int i=0; i

Viewing all articles
Browse latest Browse all 2439

Trending Articles