Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update HelloWorldTest.java #1370

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions src/main/java/core/basesyntax/Hello_World.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,40 +4,40 @@
import core.basesyntax.Model.Cat;

import java.time.LocalDate;
import java.util.Objects;

public class Hello_World
{
public class HelloWorld {
private String a;
private int vARIaBLE;
private int age, size;

private int variable;
private int age;
private int size;

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) {
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);
System.out.println(hello);
}

private void initializeVariables() {
a = "Hello mates!";
System.out.println(a);
vARIaBLE = LocalDate.now().getYear();
System.out.println("It is " + vARIaBLE + "year");
variable = LocalDate.now().getYear();
System.out.println("It is " + variable + " year");
age = 25;
System.out.println("I'm " + age);
size = 42;
Expand Down
Loading