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

public class birdFinder {   public static void main(String[] args) {     String arr[][]=new String[5][3];     arr[0][0]=”Maryland”;arr[0][1]=”Baltimore oriole”;arr[0][2]=”Black-eyed susan”;

public class birdFinder {   public static void main(String[] args) {

String arr[][]=new String[5][3];

arr[0][0]=”Maryland”;arr[0][1]=”Baltimore oriole”;arr[0][2]=”Black-eyed susan”;

arr[1][0]=”Alaska”;arr[1][1]=”Willow ptarmigan”;arr[1][2]=”Forget Me Not”;

arr[2][0]=”California”;arr[2][1]=”California quail”;arr[2][2]=”Golden poppy”;

arr[3][0]=”Florida”;arr[3][1]=”Northern mockingbird”;arr[3][2]=”Orange blossom”;

arr[4][0]=”New York”;arr[4][1]=”Eastern bluebird”;arr[4][2]=”Rose”;

Scanner input=new Scanner(System.in);

int i;

while(true)

{

System.out.print(“Enter name of state : “);

String state=input.nextLine();

if(state.equalsIgnoreCase(“none”)) // I need run this code 3 times then add a summary before it breaks of all the information of all the states. but if I put printin( state); its only going to do the last state i input. how do I get all of the states and informations display after “none”

break;

state=state.trim();

for(i=0;i<arr.length;i++)

{

if(state.equalsIgnoreCase(arr[i][0]))

{

System.out.println(“State Bird is : “+arr[i][1]);

System.out.println(“State Flower is : “+arr[i][2]);

break;

}

}

if(i==arr.length)

{

System.out.println(“State name is not in list”);

}

}

}

}

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