Skip to content

Commit

Permalink
minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
mizuo-san committed Dec 29, 2024
1 parent 2997728 commit d85f4de
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/main/java/core/basesyntax/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,11 @@ public class Application {
public static void main(String[] args) {
// create three balls using class Lottery and print information about them in console
Lottery lottery = new Lottery();
Ball[] balls = new Ball[3];

Ball ball1 = lottery.getRandomBall();
Ball ball2 = lottery.getRandomBall();
Ball ball3 = lottery.getRandomBall();

System.out.println(ball1);
System.out.println(ball2);
System.out.println(ball3);

for (int i = 0; i < 3; i++) {
balls[i] = lottery.getRandomBall();
System.out.println(balls[i]);
}
}
}

0 comments on commit d85f4de

Please sign in to comment.