본문 바로가기

Projects/자바 100제

자바 100제 12번 scanner nextline

반응형
package java_algorithm;
import java.util.Scanner;
public class ex100_12 {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		Scanner scan = new Scanner(System.in);
		
		String word = scan.nextLine();
		System.out.println(word);
	}

}
반응형