1. 기본 문법변수 선언과 초기화int a = 10;double b = 3.14;char c = 'A';String s = "Hello"; 조건문if (a > 5) { System.out.println("a is greater than 5");} else if (a == 5) { System.out.println("a is 5");} else { System.out.println("a is less than 5");} 반복문for (int i = 0; i 2. 자료 구조배열int[] arr = new int[5];arr[0] = 1;arr[1] = 2;int[] arr2 = {1, 2, 3, 4, 5}; ArrayListimport java.util.ArrayList;ArrayLis..