1// its \r\n
2String a = "Hello, "
3String b = "there!"
4System.out.println(a+b);//returns Hello, there
5System.out.println(a+"\r\n"+b);//returns Hello,
6//there! //it will be on the next line!
1Scanner scanner = new Scanner(new File("filename"));
2while (scanner.hasNextLine()) {
3 String line = scanner.nextLine();
4 // process the line
5}
6