Creating Hello World! In Java
Steps:
1) Download & Install Java
2) Download & Install An Java IDE (Integrated Development Environment) (I Use Eclipse Ide)
3) Create Java Project
4) Use This Code:
class helloworld {
public static void main(String[] args){
System.out.println("Hello World!");
}
}
Explanation:
class helloworld{
}
defines a class named helloworld
public static void main(String[] args){
}
Main Java Code Goes Here.
System.out.println("Hello World!");
Prints "Hello World!" in java console.
Remember: Don't Forget To End
System.out.println("Hello World!")
with a semicolon (;) to prevent an error.
Here we go! we have a hello world project in java!
Top comments (2)
Really?! A beginner who tries to follow your tutorial might habe hundreds of questions like:
You don't answer any of these. But the one thing you think is important is the semicolon at the end? Really?! 🤦♂️
Lol 😂 i was like 2 days into java at that time!
and i didnt follow many practices.
since then i have slowly shifted to intellij
not a tutorial of course