Question Author
tried that it doesnt work...... :-(
ive tried changing the datatype to char but as im using JOptionPane it doesnt recognize it. ive added a line afterwards to change the string input to an int but i have given the int another name. look
Cards()
{
input1 = JOptionPane.showInputDialog("Enter Character corisponding to card value:");
num1 = Integer.parseInt(input1);
if (num1 == 2)
System.out.println("Two");
if(input1 == "A")
if(input1 == "a")
System.out.println("ace")
ive also tried .= != tried initializing the String out of the constructor... im stuckkkkkkkkkkkk