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);
- StringBuffer file = new StringBuffer("");
- while(lineCount<=1){
- file.append(input.nextLine());
- lineCount++;
- }
- return file;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement