1 package driver; 2 3 import fileIO.TextFile; 4 5 public class LineCount { 6 main(String[] args)7 public static void main(String[] args){ 8 9 TextFile tf=new TextFile(args[0], false); 10 long lines=tf.countLines(); 11 tf.close(); 12 System.out.println(args[0]+" has "+lines+" non-blank lines."); 13 14 } 15 16 } 17