Save below code as welcome.java
CODE:
import javax.swing.JOptionPane;
public class welcome
{
public static void main(String args[])
{
JOptionPane.showMessageDialog(null,"Welcome to java Programming");
System.exit(0);
}
}
//End of program
Output:
To run this java program you should first install jdk(Java Development kit).
you can download it from here.
And also can download this java code and directly execute by simply clicking on .bat file in the rar file downloaded
Download here
Password for rar is:letuscodeit
Know about:
-JOptionPane

No comments:
Post a Comment