Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.36 KB | None | 0 0
  1.      public void readFile() {
  2.          String line;
  3.          int index = 0;
  4.           try {
  5.             while((line = br.readLine() ) != null){
  6.                     String neco[] = line.split("-");
  7.                    for(int i=0; i<17; i++){
  8.                        map[i][index]=neco[i];
  9.                    }
  10.                    index++;
  11.               }
  12.         } catch (IOException e) {
  13.             // TODO Auto-generated catch block
  14.             e.printStackTrace();
  15.         }
  16.          
  17.      }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement