Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //all other object specific methods
- double lineCount = 0;
- String file = "";
- public String displayHead() {
- Scanner input = new Scanner(filename);
- while(input.hasNext()){
- lineCount++;
- }
- while(lineCount <=4 || input.hasNext()) {
- file = ("input.nextLine");
- }
- return file;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement