Okay I thought I had this figured out....it gives the gui...but then on the coversion to capitol letters it gives me all kinds of exceptions
import javax.swing.JOp tionPane; //GUI support
public class UpperCase
{
public static void main(String[] args)
{
String s;
s = JOptionPane.sho wInputDialog("E nter any characters:");
int x = Integer.parseIn t (s);
System.out.prin tln("You entered " + x + ".");
// Convert to upper case
String upper = s.toUpperCase() ;
}
}
import javax.swing.JOp tionPane; //GUI support
public class UpperCase
{
public static void main(String[] args)
{
String s;
s = JOptionPane.sho wInputDialog("E nter any characters:");
int x = Integer.parseIn t (s);
System.out.prin tln("You entered " + x + ".");
// Convert to upper case
String upper = s.toUpperCase() ;
}
}
Comment