A simple Java Hello World program that demonstrates basic Java syntax, package structure, and console output.
This project provides a minimal Java application that prints "Hello World!" to the console. It serves as a foundational example for learning Java programming, illustrating proper package declarations, class structure, and the main method entry point.
- Clean and well-commented Java source code
- Proper package structure (
ie.gmit.packagename) - Standard
mainmethod entry point - Console output demonstration
- Java Development Kit (JDK) 8 or higher
Clone the repository:
git clone https://github.com/danielcregg/java-helloworld.git
cd java-helloworldCompile and run the program:
javac -d out src/ie/gmit/packagename/HelloWorld.java
java -cp out ie.gmit.packagename.HelloWorldExpected output:
Hello World!
- Language: Java
- Package:
ie.gmit.packagename
This project is licensed under the MIT License. See the LICENSE file for details.