예제...


public class Test {

public static void main(String[] args) {

Scanner scanner = new Scanner(new StringReader("123123\r\n4556"));

while(scanner.hasNextLine())

System.out.println(scanner.nextLine());

}

}


결과




+ Recent posts