When I run the following code it takes the name as input, also the code but then then it bypass the address and the program stops! What is the Problem?
import java.util.Scanner;
class demo
{
public static void main(String args[])
{
Scanner input = new Scanner(System.in);
String name;
String address;
int code;
System.out.println("Enter Your NAME : ");
name = input.nextLine();
System.out.println("Enter Your CODE : ");
code = input.nextInt();
System.out.println("Enter Your ADDRESS : ");
address = input.nextLine();
}
}