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]
2 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]2 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
For me and Thomas uhh
atroni [7]

Answer:

what does that question mean?

5 0
3 years ago
Heres another 56 points for free. Good Luck :)
murzikaleks [220]

Answer:

Thank you

Step-by-step explanation:

7 0
2 years ago
Read 2 more answers
Which of the following is not a proportion?
Alina [70]
4/10 = 12/20 since 4/10 = 10/20
5 0
3 years ago
Read 2 more answers
Determine the value of the expression 2(x - 3) when x = 2.
erica [24]

Answer:

-2

Step-by-step explanation:

2(x-3), x=2

Since we know what x equals, plug it into the equation

2(2-3)

2(-1)

-2

8 0
2 years ago
Read 2 more answers
Write the standard form of the equation of the line through the given points and I
bonufazy [111]
Nice question hey there! need help!?
8 0
2 years ago
Other questions:
  • What is the middle number of 8 and 15
    6·2 answers
  • Simplify each expression.<br> 3+-7 -2<br> 4-16 -2(2)
    6·2 answers
  • Can someone please answer this!!!!
    6·1 answer
  • What is the 8% in fraction
    10·2 answers
  • Can someone help me with 16? This is 6th grade honors math,functions.
    10·1 answer
  • Whats the prime factorliztion of 180 in exponential form
    7·2 answers
  • B) In the given figure, If AB = AC and &lt; ABC = 65°, Find the value of
    12·1 answer
  • A tornado is located between city hall and a cell phone tower and is heading towards the cell phone tower. By what angle does th
    5·2 answers
  • Simplify the expression fully <br> (3x2 + 7y) (2x2 – 3x + 9)
    8·1 answer
  • What is the distance between each pair of points. round to the nearest hundredth
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!