Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Scanner fileReader = new Scanner(new File(aName), "UTF-8");
- while(fileReader.hasNextLine())
- {
- String fileLine = fileReader.nextLine();
- String[] splitLine = fileLine.split(DELIM);
- if(fileLine.contains("\t"))
- {
- if(splitLine.length != BODY_FIELD)
- {
- continue;
- }
- String gName = splitLine[0].toUpperCase();
- String cName = splitLine[1].toUpperCase();
- Game aG = new Game(gName, cName);
- this.addGame(aG);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement