// This method takes a File
public String openread(File inputfile)
// Here you are sending a String to a method
// that takes a File. The types do not match.
String in = openread("input.txt");
// You could do
String in = openread(new File("input.txt"));