Advertisement
tjb1

Untitled

Nov 23rd, 2012
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 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. lineCount++;
  10. }
  11. while(lineCount <=4 || input.hasNext()) {
  12. file = ("input.nextLine");
  13. }
  14. return file;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement