Skip to content

Commit

Permalink
doneHomework2
Browse files Browse the repository at this point in the history
  • Loading branch information
163onmyneck committed Nov 16, 2023
1 parent e3df59c commit 1bc6c25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
11 changes: 4 additions & 7 deletions src/main/java/core/basesyntax/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@

public class Application {
public static void main(String[] args) {
Lottery lottery1 = new Lottery();
Lottery lottery2 = new Lottery();
Lottery lottery3 = new Lottery();

System.out.println(lottery1.getRandomBall());
System.out.println(lottery2.getRandomBall());
System.out.println(lottery3.getRandomBall());
Lottery[] lotteries = {new Lottery(), new Lottery(), new Lottery()};
for (Lottery lottery : lotteries) {
System.out.println(lottery.getRandomBall());
}
}
}
1 change: 0 additions & 1 deletion src/main/java/core/basesyntax/Ball.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package core.basesyntax;

public class Ball {

private String color;
private int number;

Expand Down

0 comments on commit 1bc6c25

Please sign in to comment.