RandomAccessFile raf=new RandomAccessFile(file,"rw");方法报错The constructor RandomAccessFile(File, String) is undefined
你是不是到错包了, RandomAccessFile是有这个构造器的