답안 #213356

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
213356 2020-03-25T16:15:53 Z berryzed scanf 함수 1 (BSC_0_3) Java 11
컴파일 오류
0 ms 0 KB
public class scanf1 {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int number = scanner.nextInt();
		System.out.println(number);
	}
}

Compilation message

scanf1.java:4: error: cannot find symbol
		Scanner scanner = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class scanf1
scanf1.java:4: error: cannot find symbol
		Scanner scanner = new Scanner(System.in);
		                      ^
  symbol:   class Scanner
  location: class scanf1
2 errors