Skip to content

Commit 7031cc4

Browse files
refactoring the Application.java file
1 parent b674f1b commit 7031cc4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
package core.basesyntax;
22

33
public class Application {
4+
private static final int BALLS_QUANTITY = 3;
5+
46
public static void main(String[] args) {
57
Lottery lottery = new Lottery();
68

7-
for (int i = 0; i < 10; i++) {
9+
for (int i = 0; i < BALLS_QUANTITY; i++) {
810
System.out.println(lottery.getRandomBall());
911
}
10-
1112
}
1213
}

0 commit comments

Comments
 (0)