JAVA30 JAVA 자바 ArrayList, add, size(), get, hashCode package edu.collection; import java.util.ArrayList; public class CollectionEx1 { public static void main(String[] args) { String[] arr = new String[2]; arr[0] = "apple"; arr[1] = "orange"; //arr[2] = "melon"; for(int i=0; i 2018. 2. 8. JAVA 자바 빵 주문/생산일자/유통기한 import java.util.Arrays; import java.util.Calendar; public class Bakery2 { static final int SUM = 100; static String[] bakery = new String[SUM]; static final String BREAD_1 = "식빵"; static final String BREAD_2 = "소보로"; static final String BREAD_3 = "크림빵"; static final String BREAD_4 = "팥빵"; static int cnt_1=0,cnt_2=0,cnt_3=0,cnt_4=0; public static void main(String[] args) { //100개 빵 생산 makeBakery.. 2018. 2. 8. JAVA 자바 빵/랜덤/시간/count import java.text.SimpleDateFormat; import java.util.Date; import java.util.Calendar; import java.text.DateFormat; public class Bakery { public static void main(String[] args) { int a=0,b=0,c=0,d=0; int n; String str=null; int[] Array = new int[100]; for(int i=0; i 2018. 2. 8. 이전 1 2 3 4 다음