Apologies in advance I only started learning to code very recently, with no experience in the field. My code looks like this
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int accNo, choice = 4;
String accName;
String accType;
double balance;
System.out.print("Enter Account No :");
accNo = input.nextInt();
System.out.print("Name : ");
accName = input.nextLine();
System.out.print("Account Type : ");
accType = input.nextLine();
System.out.print("Opening Balance : ");
balance = input.nextDouble();
But it prints off like this with name and account type being the same thing
Enter Account No :1231234
Name : Account Type :
Any ideas?