Question: hi im using a chrome based ide aka replit i was wondering why my code wont print out the input message or show something similar
hi im using a chrome based ide aka replit i was wondering why my code wont print out the input message or show something similar or does this only work on eclipse or java based programs if so please let me know here is the code
import javax.swing.JOptionPane;
class InputBoxes { public static void main (String [] args) { String first_name; first_name = JOptionPane.showInputDialog("First Name"); String family_name; family_name = JOptionPane.showInputDialog("Family Name"); String full_name; full_name = "You are " + first_name + " " + family_name; JOptionPane.showMessageDialog(null, full_name); System.exit(0); } }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
