Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

ย 

History

History
History
17 lines (14 loc) ยท 522 Bytes

File metadata and controls

17 lines (14 loc) ยท 522 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import java.util.Scanner;
public class c1041 {
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
System.out.println("์˜๋ฌธ์ž ์ž…๋ ฅ: ");
char c = sc.nextLine().charAt(0); // ๋ฌธ์žํ•˜๋‚˜์ž…๋ ฅ
c += 1; // ๋‹ค์Œ ๋ฌธ์ž๋ฅผ ์ €์žฅ
System.out.println(c);
}
}
// 1. ์ž…๋ ฅ ํด๋ž˜์Šค์ธ Scanner ๊ฐ์ฒด ์ƒ์„ฑ (sc)
// 2. ๋ฌธ์ž ํ•˜๋‚˜ ์ž…๋ ฅ ํ›„ ์ €์žฅ (c)
// 3. c์— 1์„ ๋”ํ•˜์—ฌ ๋‹ค์Œ ๋ฌธ์ž(์•„์Šคํ‚ค์ฝ”๋“œ)๋กœ ๋ฐ”๊พผ ํ›„ ์ €์žฅ
// 4. ์ถœ๋ ฅ
Morty Proxy This is a proxified and sanitized view of the page, visit original site.