A message is displayed on the Windows platform.
Import javax.swing.joptionpane; // Call Method
Public class hellodialog {// Define the name
Public static void main (string [] args) {// Start Method
JOPTIONPANE.SHOWMESSAGEDIALOG (NULL, "Hello, This Is A Basic Java Program! Hope You Like IT"); // Display a message
System.exit (0); // End the program
} // End Method
} // End Class
This is the most basic structure of a Java program. I hope everyone likes it.