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()){
- input.nextLine();
- lineCount++;
- }
- file = (input.nextLine());
- return file;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement