Advertisement
tjb1

Untitled

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