Course Solutions Uncategorized (Solved) : Need Help Completing Code Import Javautilscanner Public Class Arrayofstrings4 Public Stati Q31607577 . . . .

(Solved) : Need Help Completing Code Import Javautilscanner Public Class Arrayofstrings4 Public Stati Q31607577 . . . .

 

4. Create an array of strings. Display the contents of the array. Search for a string entered by the user. If present, display the location at which it is present, else display an appropriate message. The searching should not be case sensitive.

Just need some help on completing the code

import java.util.Scanner;

public class ArrayofStrings4{

public static void main(String[] args) {

String [] Bikes = {“alcyon”,”American Eagle”, “Cannondale”,”Abici”, “Strommer”};

System.out.println(“All the contents of array are : “);

for (int i = 0; i < Bikes.length; i++) {

System.out.println(Bikes[i]);

}

String name;

Scanner input=new Scanner (System.in);

System.out.println(“Enter the Name of Bike: “);

name= input.next();

int i;

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

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Answered) : Question List Question 1 Previous O Question 2 O Question 3 O Question 4 Question 5 O Ques Q30869071(Answered) : Question List Question 1 Previous O Question 2 O Question 3 O Question 4 Question 5 O Ques Q30869071

<br/><br/><img src="https://media.cheggcdn.com/media%2F269%2F269dca26-6889-483c-8a51-3cdc6e0bc8fb%2Fimage" alt="Question List Question 1 < Previous O Question 2 O Question 3 O Question 4 Question 5 O Question 6 O Question 7 O Question 8 Tiny cross-company