Skip to content

Commit

Permalink
fixed style
Browse files Browse the repository at this point in the history
  • Loading branch information
vooloshkaaa committed Jan 10, 2025
1 parent 007329c commit 7eafe60
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/core/basesyntax/Ball.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package core.basesyntax;

public class Ball {
final String color;
final int number;
private String color;
private int number;

public Ball(String color, int number) {
this.color = color;
Expand All @@ -19,7 +19,8 @@ public int getNumber() {

@Override
public String toString() {
return "Information about ball:\n color: " + getColor().toLowerCase() + " number: " + getNumber();
return "Information about ball:\n color: " + getColor().toLowerCase()
+ " number: " + getNumber();
}

}

0 comments on commit 7eafe60

Please sign in to comment.