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

(Solved) : Bit String Machine Representations Following Subnormal Numbers 150 2 1272 128 B 2 127 2 1 Q26219575 . . . .(Solved) : Bit String Machine Representations Following Subnormal Numbers 150 2 1272 128 B 2 127 2 1 Q26219575 . . . .

<p>Numerical Methods / Mathematics<img alt="What are the bit-string machine representations for the following subnormal numbers? ー150 a. 2-1272-128 b. 2-127+2-1 a. 2-127 +2-1 c, 2-127 +2-130 d.Σ 272- k=127" src="http://d2vlcm61l7u1fs.cloudfront.net/media%2Ff07%2Ff0709405-3946-4d54-94a9-717bc76e30dc%2FphpsRh7Gu.png"