Advertisement
tjb1

Untitled

Nov 23rd, 2012
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. //all other object specific methods
  2.  
  3. double lineCount = 0;
  4. String file = "";
  5.  
  6. public String displayHead() {
  7. Scanner input = new Scanner(filename);
  8. while(input.hasNext()){
  9. input.nextLine();
  10. lineCount++;
  11. }
  12. file = (input.nextLine());
  13. return file;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement