View Single Post
  #2 (permalink)  
Old 08-05-2007, 08:33 AM
hardwired hardwired is offline
Senior Member
 
Join Date: Jul 2007
Posts: 1,222
hardwired is on a distinguished road
Code:
// 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"));
Reply With Quote