🔒 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
  • 368
    Views
  • 2
    Participants
Last reply from:
P a l i n d r o m e

Trending Topics

Online now

Members online
449
Guests online
1,383
Total visitors
1,832

Forum statistics

Threads
2,287,483
Posts
29,044,851
Members
1,216,560
Latest member
saelxx02
Back
Top