Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

Hello,   I hope I sent the correct java files. I think I need

Hello, <br/>  I hope I sent the correct java files. I think I need

to be better organized…anyhow I have most of the code, I just need to figure this part out..It is underline..it is the summary statement..I am having an issue with null state…Ive tried everything.
Enter a State or None to exit: Maryland Bird: Baltimore Oriole Flower: Black-eyed Susan Enter a State or None to exit: Delaware Bird: Blue Hen Chicken Flower: Peach Blossom Enter a State or None to exit: None**** Thank you *****
A summary report for each State, Bird, and Flower is: Maryland, Baltimore Oriole, Black-eyed Susan Delaware, Blue Hen Chicken, Peach Blossom
Please visit our site again!

import java.util.Scanner;public class Main {public static void main(String[] args) {Scanner input = new Scanner(System.in);while (true) {System.out.println(“Enter a State or None to exit:”);String stateName = input.nextLine();if (stateName.trim().equalsIgnoreCase(“None”)) {System.out.println(“****Thank You*****”);System.out.println(“A summary report for each State, Bird, andFlower is:”);System.out.println( “State” +StateInformation.getState(stateName));System.out.println(“Please visit our site again!”);System.exit(0);} else {State state = StateInformation.getState(stateName);if (state == null) {System.out.println(“Invalid State Entered”);} else {System.out.println(“Bird: ” + state.getBird());System.out.println(“Flower: ” + state.getFlower());}}}}}
Background image of page 1

Step-

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"