Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(int r = 0; r < 303; r++){
- String s = file.nextLine();
- s = s.replaceAll(" ", ""); //attempt to remove whitespace
- str_arr = s.split(",");
- for(int c = 0; c < 6; c++){
- str_arr[c] = str_arr[c].strip(); //2nd attempt
- System.out.println(str_arr[c]); //here it just prints the
- number 64 with a space in
- front of it
- data_set[r][c] = Integer.parseInt(str_arr[c]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement