학생 값을 입력 후, 이름(나이) 전화번호 출력 조건 학생 class 멤버변수: 이름, 나이, 전화번호, 주소 import java.util.Scanner; public class StudentInfo { public static void main(String[] args) { // 클래스 객체 생성 (2명) // 학생 값을 입력 후, 이름(나이) 전화번호 출력 Student std1 = new Student("아이언맨",40,"010-1111-1111"); Student std2 = new Student("헐크",37,"010-2222-2222"); Student std3 = new Student(); // print메소드로 출력 std1.print(); // print메소드 안쓰고 toString으로..
주석 설명 단축키 // 한 줄 주석 Ctrl + / /**/ 다중 주석 public class 주석 { public static void main(String[] args) { // 한 줄 주석 /* 여러 * 줄 * 주석 */ } } [Java] 주석 끝! (다음 게시물 예고편) [Java] 변수
단축키 System.out.println(); sysout 입력 후, Ctrl + Space Bar public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World~!!"); } } Hello World 출력하기 끝! (다음 게시물 예고편) [Java] 주석