Java program using scanner is asking the input for the user you just take the input by using Java and else if means you are creating a conditioned here you can read more at here how to improvement the scanner how to improvement if and else statements all details and building 3 super useful projects with Java here is a full course for free you have to try this for having a good understanding about Java
here is the course link : http://jj-educate.blogspot.com/2022/05/java-programming-tutorial.html
Answers & Comments
Java program using scanner is asking the input for the user you just take the input by using Java and else if means you are creating a conditioned here you can read more at here how to improvement the scanner how to improvement if and else statements all details and building 3 super useful projects with Java here is a full course for free you have to try this for having a good understanding about Java
here is the course link : http://jj-educate.blogspot.com/2022/05/java-programming-tutorial.html
thanks Have a nice day,
Regards,
maddala