public static ArrayList<String> fileLines(String fin){
  File file=new File(fin);
  BufferedReader br;
  FileReader fr;
  ArrayList<String> lines=new ArrayList<String>();
  try {
    fr=new FileReader(file);
    br=new BufferedReader(fr);
    String line;
    try {
      while ((line=br.readLine()) != null) {
        if (line.length() > 0) {
          lines.add(line);
        }
      }
    }
 catch (    IOException ex) {
    }
  }
 catch (  FileNotFoundException ex) {
  }
  return lines;
}

public static ArrayList < String > fileLines ( String fin ) { File file = new File ( fin ) ; BufferedReader br ; FileReader fr ; ArrayList < String > lines = new ArrayList < String > ( ) ; try { fr = new FileReader ( file ) ; br = new BufferedReader ( fr ) ; String line ; try { while ( ( line = br . readLine ( ) ) != null ) { if ( line . length ( ) > 0 ) { lines . add ( line ) ; } } } catch ( IOException ex ) { } } catch ( FileNotFoundException ex ) { } return lines ; }
synopsis [ ] read file lines to arraylist < string >
