-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathApplication.java
More file actions
90 lines (74 loc) · 1.73 KB
/
Application.java
File metadata and controls
90 lines (74 loc) · 1.73 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
package lotto;
import lotto.controller.LottoController;
import java.util.Scanner;
public class Application {
public static void main(String[] args) {
LottoController lottoController = new LottoController();
lottoController.run();
// TODO: 프로그램 구현
}
}
//
//package lotto;
//
//import org.kokodak.Randoms;
//import org.kokodak.Console;
//
//
//
//public class Application {
// public static void main(String[] args) {
// // TODO: 프로그램 구현
//
// int[] lotto = new int[6];
// Randoms randoms = new Randoms;
//
// Lotto(randoms.in);
//
// int money;
// int bonus_number;
//
//
//
//
// System.out.print("구입 금액을 입력하세요: ");
//
// System.out.println("당첨 번호를 입력하세요(쉼표로 구분): ");
//
// System.out.println("보너스 번호를 입력하세요: ");
//
//
//
//
//
//
//
//
// for (int i = 0; i < lotto.length; i++) {
// lotto[i] = random.nextInt(45) + 1;
// // 중복번호 제거
// for(int j = 0; j < i; j++) {
// if(lotto[i] == lotto[j]) {
// i--;
// break;
// }
// }
// }
//
// // 오름차순 정렬
// for(int i = 0; i < lotto.length; i++) {
// for(int j = i + 1; j < lotto.length; j++) {
// if(lotto[i] > lotto[j]) {
// int temp = lotto[i];
// lotto[i] = lotto[j];
// lotto[j] = temp;
// }
// }
// }
//
// // 랜덤번호 출력
// System.out.println("* 로또번호 : " + Arrays.toString(lotto));
//
//
// }
//}