I was seeing if someone can take a look at my code for my program as I have two issues...

if I hit 2 or 3 to start the program it returns an error but also still stores the variable as you can see here...

Start the app
1: Start the car
2: Drive the car
3: Stop the car
-1: Ends the program
Enter a selection by typing 1, 2, or 3: 2
You are driving the car!
1: Start the car
2: Drive the car
3: Stop the car
-1: Ends the program
Enter a selection by typing 1, 2, or 3:

My other issue is even after I hit 1 to start the program it starts over so the only thing I can type is 1 to start the car
Start the app
1: Start the car
2: Drive the car
3: Stop the car
-1: Ends the program
Enter a selection by typing 1, 2, or 3: 2
You are driving the car!
1: Start the car
2: Drive the car
3: Stop the car
-1: Ends the program
Enter a selection by typing 1, 2, or 3:

Here is my code...

/*
Programmer: Bryan Kruep
Date: 9/11/2012
Assignment: ProgrammingAssignment3
*/

import java.util.Scanner;
public class MyApp
{
public static void main(String [] args)
{
int nova;

System.out.println("Start the app");



Car myCar = new Car();

do
{

Scanner keyboard = new Scanner(System.in);


System.out.println("1: Start the car");
System.out.println("2: Drive the car");
System.out.println("3: Stop the car");
System.out.println("-1: Ends the program");
System.out.print("Enter a selection by typing 1, 2, or 3: ");
nova = keyboard.nextInt();

while((nova != 1) && (nova != 2) && (nova != 3) && (nova != -1))
{
System.out.println("This is not a valid selection!");
System.out.print("Make a selection again: ");
nova = keyboard.nextInt();
}

//if statments
//if(nova == 1)
//{
myCar.start(nova);
//}

if(nova == 2)
{
myCar.drive(nova);
}
if(nova == 3)
{
myCar.stop(nova);
}

}while(nova != -1);

}
}


//class car
class Car
{
//public int watts = 100;
private boolean isStarted = true;

public void start(int nova)
{
Scanner keyboard = new Scanner(System.in);
if(nova != 1) isStarted = false;
while((nova != 1) && (nova != -1))
{
System.out.println("You must first start the car to drive or stop it!");
System.out.print("Make a selection again: ");
nova = keyboard.nextInt();
}


showState(nova);



}
public void drive(int nova)
{
/*Scanner keyboard = new Scanner(System.in);
System.out.println("Please make your decision on what you want the car to do next!");
System.out.println("1: Start the car");
System.out.println("2: Drive the car");
S/tem.out.println("3: Stop the car");
System.out.print("What would you like the car to do next: ");
nova = keyboard.nextInt();*/
Scanner keyboard = new Scanner(System.in);
while ((nova == 1) && (nova != 2) && (nova != 3) && (nova != -1))
{
System.out.println("This is not a valid selection!");
System.out.print("Make a selection again: ");
nova = keyboard.nextInt();
}

showState(nova);

}
public void stop(int nova)
{
/*Scanner keyboard = new Scanner(System.in);
System.out.println("Please make your decision on what you want the car to do next!");
System.out.println("1: Start the car");
System.out.println("2: Drive the car");
System.out.println("3: Stop the car");
System.out.print("What would you like the car to do next: ");
Scanner keyboard = new Scanner(System.in);
nova = keyboard.nextInt();*/
Scanner keyboard = new Scanner(System.in);
while(nova == 1)
{
System.out.println("This is not a valid selection!");
System.out.print("Make a selection again: ");
nova = keyboard.nextInt();
}

showState(nova);


}

public String showState(int nova)
{

switch(nova)
{
case 1:
System.out.println("You have started the car!");
break;
case 2:
System.out.println("You are driving the car!");
break;
case 3:
System.out.println("You have stopped the car!");
break;
}
return "" + nova;
}

}