본문 바로가기

Projects/자바 100제

자바 100제 11번 scanner nextline 응용

반응형
package java_algorithm;

import java.util.Scanner;
public class ex100_11 {

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

		Scanner sc = new Scanner(System.in);
		String cha01 = sc.nextLine();
		String cha02 = sc.nextLine();
		
		System.out.println(cha02 + "" + cha01);
	}

}
반응형