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
A ____ paragraph places the first character of a text line near the left border of a placeholder.
faltersainse [42]
A left - align paragraph places the first character of a text line near the left border of a placeholder. Paragraph alignments such as left - align, center - align and etc.. Are available on every word processing programs. The answer to your question is LEFT - ALIGN.
7 0
3 years ago
Communication mode which supports data in both directions at the same time is called
xeze [42]

Answer:

duplex mode

Explanation:

It is the duplex mode. In this mode, communication is in both directions at the same time. And it is different from the simplex or the semi duplex types in which the communication is one way only or one way at a time only. Thus, duplex mode seems to be requiring more bandwidth certainly but it can be advantageous definitely, and in situations like real tine communication, when we don't have the time and want to send as well receive the message at the same time.

7 0
3 years ago
Display ad traffic from mobile devices may appear to be unprofitable, but the ads might be profitable if
Svetlanka [38]

Answer:

They meet required amount of traffic or clicks.

Explanation:

AdSense is an advertisement platform for businesses. It advertises the registered business on various target client platform like mobile app and web app who allow these adverts for profit with a commission rate for a certain amount of traffic generated from the platform on the advertised business.

6 0
3 years ago
1. In your own words, describe the purpose of a for a loop.
Talja [164]

A for loop is typically used in situations where the number of cycles for the loop is known before hand. One thing that uses for loops is video rendering software, it uses it to render each file and allocate each rendered file to its specified destination.

5 0
4 years ago
Can somone give me advice!
DENIUS [597]

Answer:

if you are scared just do it through text and btw life is short go for it

Explanation:

and if he says no there is plenty of more people out there

3 0
3 years ago
Read 2 more answers
Other questions:
  • Because an AVL tree is a binary search tree, the search algorithm for an AVL tree is the same as the search algorithm for a bina
    10·1 answer
  • To select all the text in a document, press ____.
    12·2 answers
  • PLEASE FILL IN THE BLANK FOR THESE POINTS!!!!!
    15·2 answers
  • The ___________ command waits for windows 7 to save your work and then turns off the computer fans and hard disk. answer shut do
    11·1 answer
  • You are developing open-source software based on existing source code developed by someone else. What is the term for the piece
    9·1 answer
  • If the executives for Office Max LLC, a chain of office supply stores, developed the chain's objectives by asking buyers and sto
    11·1 answer
  • In this problem, you will fill in the code for a function count_digits(val) that takes a positive integer, val, and returns a li
    12·1 answer
  • Made from fruit juice, water and sugar, The American version contains milk and cream and sometimes egg white​
    9·1 answer
  • In python, sorry if it’s blurry
    13·2 answers
  • A common business practice is to include a worksheet named Documentation that contains a description of the workbook, the name o
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!