Last active
June 10, 2025 09:39
-
-
Save Dain-Yang/69d2e14069ed30027715447dd0b39481 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 양다인 */ | |
import java.util.Scanner; | |
public class JavaStudy09 { | |
public static void main(String[] args) { | |
Scanner scan = new Scanner(System.in); | |
System.out.println("학생 정보를 입력하세요."); | |
System.out.print("이름 : "); | |
String name = scan.next(); | |
System.out.print("학년 : "); | |
int grade = scan.nextInt(); | |
System.out.print("반 : "); | |
String className = scan.next(); | |
System.out.println(); | |
System.out.println("== 학생 정보 =="); | |
System.out.println("이름 : " + name); | |
System.out.println("학년 : " + grade); | |
System.out.println("반 : " + className); | |
scan.close(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment