Basic Java Language: Difference between revisions
wikademia>Cremisis13 |
wikademia>Cremisis13 |
||
| Line 218: | Line 218: | ||
</pre> | </pre> | ||
Note that NAME is still the program's name! | Note that NAME is still the program's name! | ||
=Convenient | =Convenient Statements= | ||
System.out.println("TEXT HERE"); -- Prints text onto command console (include quotes) | |||
JOptionPane.showMessageDialog(null, "TEXT HERE"); -- Opens a message box with the text in the quotes | |||
String message = JOptionPane.showInputDialog(null, "TEXT HERE"); -- See above; also allows user to input something. In this case, the input goes to String message | |||
=Finalizing the Basics= | =Finalizing the Basics= | ||