import java.io.*; import java.util.StringTokenizer; // How to read a file from disk. // try & catch public class read3 { public static void main( String[] args ) { ConsoleReader console = new ConsoleReader( System.in ); System.out.print( "Enter file name to read: " ); String inputfile = console.readLine(); BufferedReader input; try { //FileReader readme = new FileReader( inputfile ); input = new BufferedReader(new FileReader( inputfile )); String line = input.readLine(); // read the first line if ( line == null ) return; double Dval = 0.0; while( ( line = input.readLine() ) != null ) { StringTokenizer tokenizer = new StringTokenizer( line ); int columns = tokenizer.countTokens() ; for( int j=0; j