Skip to content

Commit

Permalink
have 10 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Smechow committed Sep 17, 2024
1 parent 4abab12 commit fbd88d5
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/main/java/core/basesyntax/HelloWorld.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,24 @@ public class HelloWorld {

public static void main(String[] args) {
Dog dog = new Dog();
Cat cat = new Cat(); }
Cat cat = new Cat();
}

private String getFromOneToTen() {
String result="";
String result = "";

for (int i=0; i<10; i++){
if(i%2==0)
result = result + i + " ";
for(int i = 0; i < 10; i++) {
if (i % 2 == 0) {
result = result + i + " ";
}
}
return result;
}

private void sayHello(String hello) {
System.out.println("Hello, Mate! I am happy to see you! This class looks weird! Your task is to fix the checkstyle in this file." +
" Your goal is to run `mvn clean package` and receive `BUILD SUCCESS` message");
System.out.println("Hello, Mate! I am happy to see you! This class looks weird!"
+ " Your task is to fix the checkstyle in this file."
+ " Your goal is to run `mvn clean package` and receive `BUILD SUCCESS` message");
System.out.println(hello);
}

Expand Down

0 comments on commit fbd88d5

Please sign in to comment.