please help me to make the code
package utils;
import java.io.*;
class compare { public static void main(String args[]) throws IOException {
FileInputStream file1 = new InputStream(args[0]);
FileInputStream file2 = new InputStream(args[1]);
try {
if(args.length != 2)
throw (new RuntimeException("Usage : java compare <filetoread> <filetoread>"));
while (true) {
int a = file1.read();
int b = file2.read();
if (a==-1) {
System.out.println("Files match");
}
else{
System.out.println("Files do not match");
}
}
}
catch (IOException ioe) {
System.out.println("Error: " + ioe);
}
catch (Exception e) {
System.out.println("Error: " + e);
}
}
}