A simple Java program

zhaozj2021-02-16  99

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.

转载请注明原文地址:https://www.9cbs.com/read-11051.html

New Post(0)