MappedByteBuffer out = new RandomAccessFile("src/demo20/test.dat", "rw"). getChannel().map(FileChannel.MapMode.READ_WRITE, 0, length); for (int i = 0; i < length; i++) { out.put((byte)'x'); } System.out.println("end"); for…
import java.io.*; import javax.swing.*; public class Student { public static void main(String[] temp) { byte b[] = new byte[2]; try{ FileInputStream fis = new FileInputStream("word.txt"); ProgressMonitorInputStream in = new ProgressMonitorInputS…