日期:2014-05-20  浏览次数:20673 次

a question about "byte"
int   len   =   in.numBytes();
byte   array[]   =   in.readBytes(len);
for(int   i=0;   i <array.length;   i++   )
      System.out.println(array[i]);/*******how   can   I   print   char?*******

Now,   it   just   can   print   integer.   But   I   want   print   character.

------解决方案--------------------
System.out.println(new String(array));
------解决方案--------------------
楼上正解。要不你就用String s = ins.readline();
一读一行