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
ira [324]
3 years ago
13

If string str1 = "forest" and string str2 = "school", then what is the value of str1.compareto(str2);?

Mathematics
1 answer:
REY [17]3 years ago
8 0
<span>This is an java command program. String 1 is stands for str1= '' forest '' accepted within quote marks. String 2 is stands for str1= '' school'' accepted within quote marks the command compareto will cause the output will display as shown below : str1.compareto(str2); when run this command we will get the output like this ; forest school ================================================== the model program is like this; { String str1 = " forest " ; String str2 = "school "; System.out.println(); System.out.println("String 1: " + str1); System.out.println("String 2: " + str2);</span>
You might be interested in
Connor have six employees and Bob 41 uniforms for them if you wanted to give them the same number of uniforms so he doesn't have
bagirrra123 [75]
It will be 6 to each person because 6x6 is 36 if u do 6x7 it will be 42 and it said 41 t-shirts not 42
6 0
3 years ago
Read 2 more answers
Steps to solve problem
Valentin [98]
The you are asking for is is 239
8 0
3 years ago
Read 2 more answers
1-(1.00375) exponent-12(30)
victus00 [196]

Answer:

360

Step-by-step explanation:

7 0
3 years ago
-⅕ (10-5+25x)<br> Please help!
Yanka [14]

Answer:

--\frac{1}{5} * (5+25x)\\-\frac{1}{5} *5-\frac{1}{5}(25x)\\-1-\frac{1}{5}(25x)\\-1 -1 (5x)\\01-5x

Step-by-step explanation:

7 0
3 years ago
A system of two linear inequalities is graphed as shown, where the solution region is shaded.
Zinaida [17]

Answer:

(-3,2) is located in the solution region.

Step-by-step explanation:

3 0
3 years ago
Other questions:
  • What is the total power in a circuit with a current of 4 A and a resistance of 12 ? A. 4 W B. 48 W C. 16 W D. 192 W
    9·1 answer
  • Expand and simplify: (2x − 5y) (x + 3y)
    11·1 answer
  • Which of the following statements are true?
    9·1 answer
  • A 9-yard roll of white paper costs $1.98. What is the unit price?
    11·1 answer
  • 2x + 3y + x +7<br> Like terms
    5·2 answers
  • When investing money in a bank account, in which situation will you have the most money in your account at the end of three year
    6·1 answer
  • Jada has read 35 of a book. She has read 75 pages so far. How many pages are in the whole book?
    8·2 answers
  • Share a dream that you had recently and what share what it possibly means. 12 sentences minimum and no links&lt;3​
    14·1 answer
  • 5(1÷6) answers is what
    12·2 answers
  • Which of these best describes Pi?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!