Skip to content

Commit

Permalink
solution 3
Browse files Browse the repository at this point in the history
  • Loading branch information
xMax committed Dec 31, 2024
1 parent aa53b99 commit 4275095
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/core/basesyntax/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
public class Application {
public static void main(String[] args) {
// create three balls using class Lottery and print information about them in console
Lottery[] balls = { new Lottery(), new Lottery(), new Lottery() };
for (Lottery ball : balls) {
System.out.println(ball.getRandomBall());
for (int i = 0; i < 3; i++) {
Lottery lottery = new Lottery();
Ball ball = lottery.getRandomBall();
System.out.println(ball);
}
}
}

0 comments on commit 4275095

Please sign in to comment.