正在加载图片...
RandomAccessFile类另 private static String readName(RandomAccessFilerandomAccessfile throws IOException char[ name new char [l5] for(int i=0; i< namelength; i++) name [i]= randomAccessfile readchar()i //捋空字符取代为空格符并传回 return new String(name).replace('\0,Ii)iRandomAccessFile类别 private static String readName(RandomAccessFile randomAccessfile) throws IOException { char[] name = new char[15]; for(int i = 0; i < name.length; i++) name[i] = randomAccessfile.readChar(); //将空字符取代为空格符并传回 return new String(name).replace('\0', ' '); }
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有