Create a new Java class with a main() method that displays "Hello World!" followed by a new line with your name on it. The final printout should look like: Hello, World! by
Create a new Java class with a main() method that displays "Hello World!" followed by a new line with your name on it. The final printout should look like:
Hello, World!
by <your name here>
Remember to follow Java standard conventions by giving the class and file name the same name, such as "public class HelloWorld" and HelloWorld.java. By giving the file name the same name as your class name, the Java executable will know what compiled class name to look for the after you compile the file named "HelloWorld.java".
Make sure you create your Java Project, create your Java class and run / execute this
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images