if you can provide any help for me, It would help a looooot. thanks
import javax.swing.JOptionPane;
import java.util.*;
public class Ifprogram
{
static Scanner console = new Scanner(System.in);
public static void main (String[] args)
{
String Intro;
String Add;
String Subtract;
String Multi;
String Divide;
String Modu;
String Exit;
int A;
int S;
Intro = JOptionPane.showInputDialog(null, "Enter A to add 3 numbers \n S to Subtract two numbers \n M to Multiply three numbers \n D to Divide two numbers \n O to Modulus two numbers \n and E to Exit.");
if (User inputs 'A') {
Add = JOptionPane.showInputDialog(null, "You selected to add 3 numbers. Enter the first digit to add.");
} else if (User inputs 'S') {
Subtract = JOptionPane.showInputDialog(null, "You selected to subtract 2 numbers. Enter the first digit to add.");
}
}
}

New Topic/Question
Reply
MultiQuote












|