Advertisement
tjb1

Untitled

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