본문 바로가기

전체 글191

23.04.27 JAVA 활용 강의를 이어나가기 위해서 기본을 다져야 한다고 생각, 기본 강의를 다시 돌아보기로 했다. 공부 내용은 코드 내에 주석으로 첨부 문자열 public class _01_HelloWorld { public static void main (String[] args) { System.out.println("119"); } } public class _02_DataTypes { public static void main(String[] args) { System.out.println("Hello World!"); System.out.println("안녕하세요?"); System.out.println(12); System.out.println(-12); System.out.println(3.14); S.. 2023. 4. 27.
23.04.26 1일의 요일을 입력할 수 있는 달력 만들기 혼자 만든 것 package Javajigi.Calendar; import java.util.Scanner; public class PromptMaking_2 { private final static String PROMPT="cal> "; public void rumPrompt() { Scanner scanner = new Scanner(System.in); CalendarMaking_2 cal = new CalendarMaking_2(); while (true) { System.out.println("년도를 입력해 주세요"); System.out.print(PROMPT); int year = scanner.nextInt(); System.out.println.. 2023. 4. 26.
23.04.25 캘린더 만들기 기본 입력 public class Calendar { public static void main(String[] args) { System.out.println("일 월 화 수 목 금 토"); System.out.println("------------------"); System.out.println(" 1 2 3 4 5 6 7"); System.out.println(" 8 9 10 11 12 13 14"); System.out.println("15 16 17 18 19 20 21"); System.out.println("22 23 24 25 26 27 28"); } } 숫자 입력하고 더하기 public class Add { public static void main(String[] arg.. 2023. 4. 25.
23.04.24 구구단 만들기 단순 나열 public class times_table { public static void main(String[] args) { //2단 System.out.println(2 * 1); System.out.println(2 * 2); System.out.println(2 * 3); System.out.println(2 * 4); System.out.println(2 * 5); System.out.println(2 * 6); System.out.println(2 * 7); System.out.println(2 * 8); System.out.println(2 * 9); System.out.println(); //3단 System.out.println(3 * 1); System.out.pri.. 2023. 4. 24.