1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Aneli [31]
3 years ago
13

In java please

Computers and Technology
1 answer:
Sidana [21]3 years ago
7 0

Answer:

Explanation:

The following code is written in Java. It is a static method that takes in a String parameter and loops through the String array called arr comparing each element in the array with the word parameter that was passed. If it finds a match the method returns the index of that word, otherwise it will return -1

  public static int findString(String word){

               int index = -1;

               for (int x = 0; x < arr.length; x++) {

                       if (word == arr[x]) {

                               index = x;

                               break;

                       }

               }

               

               return index;

               

       }

You might be interested in
Why are duplicate tuples not allowed in a relation?
velikii [3]

Answer:

Explanation:

Duplicate tuples are not allowed in a relation because the specifications of the constraints of the regional integrity are violated, especially the main constraint that states that there can be no identical values for the attributes of two tuples at any database relation state.

Also, duplicate tuples are not allowed in a relation due to the fact that they lead to redundancy of the data base which in turn, slowing down the speed of the database when data processing such as inserting, querying, updating, deleting, etc are being performed.

4 0
4 years ago
Type the correct answer in the box. Spell the word correctly. Which framework can be used to develop cross-platform applications
kaheart [24]

Answer:

Xamarin

Explanation:

Xamarin framework can be used to develop cross-platform applications.

5 0
3 years ago
Read 2 more answers
And, Or, Not are examples of:
yanalaym [24]
Boolean operators it is
all the best
5 0
3 years ago
How to build aeroplain pls tell me I want to go to amereeca
damaskus [11]

Answer:

lol i think it would be cheaper to but a ticket or drive there

8 0
3 years ago
PUBG mobile id and name plz
ycow [4]
KSK Jemens je Jemen jeme this is mine
5 0
3 years ago
Other questions:
  • Devices designed primarily to be used with a company network are called
    12·1 answer
  • Which folder is the default choice for saving bitmap or JPEG files created by a user?
    9·1 answer
  • A hard drive cannot be partitioned until the device _________ is set.
    5·2 answers
  • Numeric data is stored in what for direct processing
    5·1 answer
  • An instance variable name of type String, initialized to the empty String. An instance variable score of type int, initialized t
    8·1 answer
  • I have a summary to write for my robotics class but it is way too hard and i have a bery less time. If you can help me it would
    7·1 answer
  • To print a budget:________.
    9·1 answer
  • Select the item that best represents technology transfer?
    8·1 answer
  • What keyword is used in Java to create a parent/child relationship between two classes?
    14·1 answer
  • Which of the following is true about stateless applications?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!