Advertisement
tjb1

Untitled

Nov 23rd, 2012
64
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. Scanner input = new Scanner("filename");
  3. double lineCount = 0;
  4. String file = "";
  5.  
  6. public String displayHead() {
  7. while(input.hasNext()){
  8. lineCount++;
  9. }
  10. while(lineCount <=4 || input.hasNext());
  11. file = ("input.nextLine");
  12. return file;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement