posted 23 years ago
public class ReasonJava
{
public static void main(String[] args) throws Exception
{
String[] inputNumber = {"It's fun", "It's new", "It's easy",
"It's exciting", "It's different", "It's wild", "It's cool",
"It's gonna help me get a job", "It's something my hubby doesn't know",
"It's out there"};
String inputString = new String();
char inputChoice;
int inputNum = 0;
System.out.println("Enter why you like Java..pick number 0 - 9: ");
inputChoice = (char)System.in.read();
System.in.read();
System.out.println("You have chosen " + inputChoice);
inputNum = Integer.parseInt(inputNumber);
System.out.println("this is inputNums value " + inputNum);
-----this is my code...and the problem is at the Integer.parseInt----it points to the dot between the two words.......Am I doing it wrong???