how do you display text in a message dialog box?

Average Rating
0 out of 5 stars. 0 votes.

how do you display text in a message dialog box?

import javax.swing.JOptionPane; and call the showMessageDialog method