RandomAccessFile中的seek方法是什么意思啊???
public class IOTest2 {
public static void main(String[] args){
int a[]={1,2,3,4,5,6,7,8,9,10};
try{
RandomAccessFile ran = new RandomAccessFile("E:\\tom.dat","rw");
for(int i=0;i<a.length;i++){
ran.writeInt(a[i]);
}
for(int j=a.length-1;j>=0;j--){
ran.seek(j*4);
System.out.print(ran.readInt()+" ");
}
}catch (FileNotFoundException e) {
System.out.println("文件写入失败!");
} catch (IOException e) {
System.out.println("文件读出失败!");
}
}
}
RandomAccessFile类在文档中看的不是很懂,那个seek方法也没看懂,代码中的ran.seek(j*4)该怎么解释额