카페검색 본문
카페글 본문
-
24.03.20 숙제 2024.03.21해당카페글 미리보기
for(int i=0; i<10; i++) { arr.add((int)(Math.random()* 100) + 1); } // 1. 원본 출력 System.out.print("arr 원본 : " + arr); System.out.println(); // 2.오름차순 정렬 출력(1) Collections.sort(arr); // 3.오름차순 정렬 출력 - 2 for(int i...
-
24.03.20 수업내용 복습 2024.03.21해당카페글 미리보기
1~10 사이의 숫자 3개를 입력하세요(중복되는 숫자 입력은 불가능합니다)"); for(int i=0; i<3; i++) { while(true) { System.out.print((i+1) + "번째 숫자 입력 > "); choiceNum[i] = sc.nextInt(); for(int j=0; j<i; j++) { if(choiceNum[i...
-
2024-03-20 숙제 2024.03.21해당카페글 미리보기
감나무", "밤나무"}, {"오사랑", "하나로", "행복해"} }; for(String[] arr : classArr) vos.add(arr); for(int i=0 ; i0 & classNum<4) { System.out.println("----------------------------"); System.out.print(classNum+"반 : "); for(int i=0 ; i
-
2024/03/20 숙제 2024.03.21해당카페글 미리보기
class3 = {"오사랑","하나로","행복해"}; vos.add(class1); vos.add(class2); vos.add(class3); while(true) { System.out.print("반을 입력해 주세요(숫자로 입력, 종료는 0번) : "); int ans = sc.nextInt(); if(ans == 0) break; switch(ans) { case 1...
-
토마호크 미사일을 쏘는 건 SSN이 할 임무가 아니다 2024.03.21해당카페글 미리보기
20 Mar 2024|Malcolm Davis SHARE Print This Post What, exactly, is Australia’s intended fleet of nuclear-powered...to do? It’s reasonable to ask the question, because the government has not spelled out the roles of the vessels...
-
240320 숙제 2024.03.20해당카페글 미리보기
Math.random() * 91) + 10); } Integer[] intgers = arrayList.toArray(new Integer[0]); System.out.print("10부터 100까지의 난수 중 10개 원본 : "); for (Integer integer : intgers) { System.out.print(integer + " "); } System.out.println...
-
24.03.20 숙제 2024.03.20해당카페글 미리보기
println("1. 전체 학생 목록 | 2. 선택한 반의 학생 목록 | 0. 종료"); System.out.println("==========================================="); System.out.print("번호를 입력하세요> "); int ans = sc.nextInt(); switch(ans) { case 1: for(int i=0; i...
-
24_03_20_과제 2024.03.20해당카페글 미리보기
random()*90) + 10); } System.out.println("원본입니다~."); for(int i = 0; i < sort.size(); i++) { System.out.print(sort.get(i)+" "); } // System.out.println("오름차순 정렬입니다."); // Collections.sort(sort); // for(int i = 0; i < sort...
-
24.03.20 숙제 2024.03.20해당카페글 미리보기
list); int listSize = list.size(); Integer[] up = list.toArray(new Integer[listSize]); Arrays.sort(up); System.out.print("오름차순 : ["); for(int i=0; i<up.length; i++) { if(i==up.length-1) System.out.print(up[i]); else System.out.print...
-
2024.03.20_숙제 2024.03.20해당카페글 미리보기
new TreeSet(); while(lotto.size()<6) { lotto.add((int)(Math.random()*45)+1); } for(int num : lotto) { System.out.print(num + " "); } } } Colored by Color Scripter cs #4번 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25...