Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package rudolph;
- import javax.swing.JOptionPane;
- public class IfBlankWasBlank {
- public static void main(String[] args) {
- String charInput = "";
- String thing = "";
- String pun = "";
- charInput = JOptionPane.showInputDialog(null,
- "Enter the person or thing you'd like to make fun of:");
- thing = JOptionPane.showInputDialog(null,
- "Enter the thing that " + charInput +" is doing:");
- pun = JOptionPane.showInputDialog(null,
- "Enter the pun that " + charInput + " is doing:");
- String msg = "If " + charInput + " was " + thing + ", then they'd be " + pun + ".";
- JOptionPane.showMessageDialog(null, msg);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement