Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

How to use Else If statements in Netbeans?

For my netbeans project i have been tasked to create a zoo data base for animals. I was wondoring how can the user select a desired option for different effect such as by inputting number "1" and press enter will show mammals information for gender, species & such and inputting number "2" and press enter will show Reptiles information as shown below. Any answers is appreciated

System.out.println("Welcome to our zoo data base. Please select a number for the corresponding type of animals");

System.out.println("1. Mammal");

System.out.println("2. Reptiles");

System.out.println("3. Birds");

Update:

Also I already have scanner program and IT IS a netbeans project, the scanner part I used is when someone enters their name it will display the information but I need assistance for if someone types a certain number/letter it will display a specific type of data information

There are no answers yet.
Be the first to answer this question.