Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- double lineCount = 0;
- // String file = "";
- public StringBuffer displayHead() {
- Scanner input = new Scanner(filename);
- String text = "";
- StringBuffer file = new StringBuffer("");
- while(lineCount<=1){
- text = input.next();
- file.append(text);
- lineCount++;
- }
- return file;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement