1) Basic Structure
Minimal Java program with the main method and console output.
← All Topics
▶ Run Program
Java Code
public class Main { public static void main(String[] args) { System.out.println("Hello, Students!"); System.out.println("Welcome to BlueJ Java Lab Portal!"); } }
Program Input (optional)
Output