Java Standard Library Flashcards
JOptionPane
A GUI for text input and output located in javax.swing
showInputDialog(String prompt)
Prints the prompt and returns the string entered by user
showMessageDialog(String message)
Generates a message box
showConfirmDialog()
Generates a message box
showConfirmDialog(null, prompt, title, optionType)
Creates a confirmation window
java.lang
General support - string, integer, float, math
Package for general utilities
- random numbers
- currency
- calendar
- data structures
java.util
Package for formatting text
- dates
- currency
java.text
Package for basic graphics & GUIs
java.awt
Package extending awt with advanced GUIs
javax.swing
Package with functions for I/O and formatting
java.io
Package for writing applets
java.applet
Which package is automatically imported into all programs?
java.lang
String method for length
S.length();
String method for comparing the content of strings. Return type.
s.equals(t);
Boolean