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
Malika responded that the value of t in the equation, t3 = 64/27 is 8/3. Explain why you agree or disagree with Malika. Justify
Minchanka [31]

Answer:

divide 64/8 and 27/9 to arrive at 8/3 for 64/27

3 0
3 years ago
Hey can you please help! posted picture of question
frosja888 [35]
The solution of the system can be x - 3y = 4 only if both the equations can be simplified to x - 3y = 4.

This will mean that both the equations will result in the same line which is x - 3y = 4 and thus have infinitely many solutions.

Second equation is:

Qx - 6y = 8 
Taking 2 common we get:

(Q/2)x - 3y = 4

Comparing this equation to x- 3y = 4, we can say that 

Q/2 = 1
So,
Q = 2

Therefore, the second equation will be:

2x - 6y = 8
5 0
3 years ago
Write a doubles fact to find the sum 3+2
valentina_108 [34]

Answer:

5 or -5

Step-by-step explanation:

3+2=5

-1(3+2)=-5

3 0
3 years ago
What is the value of x <br> Enter your answer, as a decimal in the box
Maru [420]

Answer:

the answer is 8.334

Step-by-step explanation:

3 0
3 years ago
Jake throws a dart that hits the square shown below:
mrs_skeptik [129]
21.5.......:::..............:.::.::..
7 0
3 years ago
Other questions:
  • Zhen is an audiobook narrator. The table gives some completed audio lengths and the amount of time Zhen spends researching, reco
    9·2 answers
  • Three swimmers competed in a 50 m freestyle race. A description of their swimming speeds is given. Order the swimmers from first
    7·2 answers
  • Heleleppepepepepepepepep pleaee
    10·1 answer
  • The side-lengths of a triangle are decreased by a scale factor of 3. Predict
    15·1 answer
  • What is the answer for. -3x &gt; -15
    13·1 answer
  • What term number will have 400 square in it?
    6·1 answer
  • Helppppppp plxxxxxxvvvvvvvvv​
    5·2 answers
  • PLEASE HURRY
    8·2 answers
  • Find each angle measure in the figure<br><br><br><br>The angle measures are ___°, ___° And ___°.​
    10·2 answers
  • 11. Solve 77 +5 - 92 &lt; 18 + 7. Graph the solution.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!