From fbd88d59b61de4de6717118aa105ce592c4f2336 Mon Sep 17 00:00:00 2001 From: Alex Smechow Date: Tue, 17 Sep 2024 22:20:31 +0300 Subject: [PATCH] have 10 errors --- src/main/java/core/basesyntax/HelloWorld.java | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/main/java/core/basesyntax/HelloWorld.java b/src/main/java/core/basesyntax/HelloWorld.java index 7731ee68..9c006ec6 100644 --- a/src/main/java/core/basesyntax/HelloWorld.java +++ b/src/main/java/core/basesyntax/HelloWorld.java @@ -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); }