🔒 Closed Need help po. Ano po yung error dito ?and paano siya mafifix? Advance thank you po sa makaktulong.

Status
Not open for further replies.
package com.company;
import javax.swing.JOptionPane;
public class DialogInput Box {
public static void main (String [] args) {

String fname, mname, lname;
String outputStr;

fname = JOptionPane.showInputDialog ("Enter your First Name: ") ;
mname = JOptionPane.showInputDialog ("Enter your Middle Name: ") ;
lname = JOptionPane.showInputDialog ("Enter your Last Name: ") ;

outputStr = "First Name: "+ fname + "\n" + "Middle Name" + mname + "\n" +"Last Name" + lname ;

JOptionPane.showMessageDialog(null, outputStr, "Student Information");
JOptionPane.showMessageDialog("ERROR_MESSAGE");
System.exit (0);

}
}
 
Status
Not open for further replies.

About this Thread

  • 1
    Replies
  • 365
    Views
  • 2
    Participants
Last reply from:
P a l i n d r o m e

Online now

Members online
1,086
Guests online
853
Total visitors
1,939

Forum statistics

Threads
2,277,000
Posts
28,973,674
Members
1,229,682
Latest member
JhayPureno13
Back
Top