Skip to content

Commit

Permalink
Task completed.
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneAvramchuk committed Sep 17, 2024
1 parent ad696ad commit 7f5cf04
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 46 deletions.
46 changes: 46 additions & 0 deletions src/main/java/core/basesyntax/HelloWorld.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
package core.basesyntax;

import core.basesyntax.model.Cat;
import core.basesyntax.model.Dog;
import java.time.LocalDate;

public class HelloWorld {
private String greeting;
private int variable;
private int age;
private int size;

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

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

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);
}

private void initializeVariables() {
greeting = "Hello mates!";
System.out.println(greeting);
variable = LocalDate.now().getYear();
System.out.println("It is " + variable + "year");
age = 25;
System.out.println("I'm " + age);
size = 42;
System.out.println("The size is " + size);
}
}
46 changes: 0 additions & 46 deletions src/main/java/core/basesyntax/Hello_World.java

This file was deleted.

0 comments on commit 7f5cf04

Please sign in to comment.