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
Which of the following is a job description for a person with a degree in Information Technology? radiology engineer web develop
Jet001 [13]

Answer: Web developer

Explanation: Web developer is a job where you have to develop World Wide Web applications by programming or applications that run over the internet, and this degree would need a degree in information technology

The other degrees needed for the following jobs:

1.    Radiology engineer: Radiology is a study of diagnosing and treating diseases with the help of medical imaging. So, it needs a degree in medical combined with physics and chemistry.

2.    Toxicologist broadcast technician: is a job where the technician has to determine the factors which contributed to a person’s death. So, a person should have a degree in medicine to become a toxicologist technician

6 0
3 years ago
What is the key function of a sales team?
Marianna [84]

Answer:

C

Explanation:

best option for the available answers

3 0
3 years ago
What will be displayed if code corresponding to the following pseudocode is executed? Set Number = 4 Repeat Write 2 * Number Set
Elis [28]

Answer:

8

12

Explanation:

I made the code a bit easier to understand then worked out how it would go. Here's what I did.

number = 4

repeat until number = 8:

   write 2 * number

   number = number + 2

Following this itenary, we have, the system first writes "8" as it multipled 4 by 2. Number is now equal to 6.

Next repetition, the system writes "12" as it multipled 6 by 2. Now, number = 8. The proccess now stops as number is now equal to 8.

5 0
3 years ago
Students may elect to take the knowledge test online or at a license office. What additional test must be taken at the licensing
SVETLANKA909090 [29]
In applying for a license, students must take the knowledge test online or in the licensing office. However, the exams do not stop there, they also need to test the skills test or a drive test after passing the knowledge test. This is to complete their application for a driver's license.
6 0
3 years ago
NARIO 1
Alika [10]

Answer:

85%

Explanation:

8:00 a.m - 1:00 pm = 5 hours

Sunday - Wednesday = 4 days

Total scheduled hours = 5 * 4 = 20 hours

Hours in adherence :

Sunday to Tuesday (3 * 5 hours) = 15 hours

Wednesday : (11:00 a.m - 1:00 a.m) = 2 hours

Total hours adhered = (15 + 2) = 17 hours

Commitment adherence percentage :

(Total hours adhered / total scheduled hours) * 100%

(17 / 20) * 100%

0.85 * 100

= 85%

5 0
2 years ago
Other questions:
  • You have installed a device that has eight interfaces and does not forward broadcast packets. What kind of device did you instal
    6·2 answers
  • All it services and servers are equally critical. <br> a. True <br> b. False
    9·1 answer
  • You can use this effect to break a color into a percentage of its full strength.
    13·1 answer
  • Imagine the user types in a complete sentence, but we want to read only the first word and place it in the String variable word.
    11·1 answer
  • A brick has a weight of 23N. The brick is flat and smooth on the side in contact with the floor having measurements ( height= 5c
    13·1 answer
  • Define the term hardwar<br><br>​
    9·2 answers
  • The memory used by the CPU to temporarily hold data while processing is called _______. random access memory central processing
    5·1 answer
  • You need to install Windows on a new computer. You also need to replace a motherboard in another computer, and both tasks need t
    14·2 answers
  • The…..executed simple
    8·2 answers
  • Which access object cannot be used to enter or edit data
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!