728x90 반응형 자바 기초1 [자바 기초 06] 프로필 출력하기 문제1 기본적인 타입과 변수 그리고 연산자를 사용하여 아래와 같은 프로필을 출력하시오. // 클래스 만들기: 자바프로그램의 구성요소 public class Profile{ //메인메소드: 프로그램의 시작점 public static void main(String[] args){ //변수 String name = "홍팍"; int studentNumber = 20230104; double tall = 1.78; boolean isMale = true; //출력 System.out.println("이름: "+name); System.out.println("학번: "+studentNumber); System.out.println("신장: "+tall+"m"); System.out.println("남자인가요? ".. 2023. 1. 4. 이전 1 다음 728x90 반응형