Scanner sc = new Scanner(System.in); // Владелец System.out.print("Владелец: "); String owner = sc.nextLine(); // Номер парковки System.out.print("Номер парковки: "); String number = sc.nextLine(); I have to enter a value for the owner and number string, but in the console it displays:
Владелец: Номер парковки: АЕ-535 --- Вы ввели --- Владелец: Номер парковки: АЕ-535 and I can enter a value. but this value will be for number only. How then to be?
System.out.printlnor replacenextLinewithnext- Flippy