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
Calculate the distance between (5, 3) and (-1, 6). Round your answer to the nearest tenth if necessary. (One place after the dec
rusak2 [61]

Answer:

{xy}^{2}  =  {6}^{2}  +  {3}^{2}  =45 \\ xy =  \sqrt{45}  = 6.71

sorry but I am not sure if this is right :(

6 0
3 years ago
Solve 4/5x - 3 3/4x =2 1/2
faust18 [17]
First one subtract 4/5 and 3 3/4 then divide both sides by the number you get from subtracting.
4 0
3 years ago
5. Which two triangles in problems 1-4 are similar? Explain.<br> Help please
Shkiper50 [21]

Answer:

Triangle 1(ABC) and Triangle 3(XYZ) are similar since all their angles are equal

In Traingle XYZ m of angle Y is 85 degree..

Hope it helps u...

4 0
2 years ago
∠5 ​ and​ ​ ∠6 ​ ​are complementary angles.<br><br> m∠5=13°<br><br> What is the measure of ​ ∠6 ​?
loris [4]

Answer:

the measure of <6 is 77 degrees

x + 13 = 90

x = 77

Step-by-step explanation:

4 0
3 years ago
Which of the following expressions are equivalent?
suter [353]
1 and 2 are equivalent
7 0
2 years ago
Other questions:
  • H(x)=3^x and g(x)=5x-7 then h(g(2))
    12·1 answer
  • 7/10 divided by -0.75
    15·2 answers
  • Only 15 and 16 are the one I'm confused on
    12·1 answer
  • What's 20 percent of 40
    14·1 answer
  • Yard #1: Part 1<br> Find the Area of the entire yard.
    9·1 answer
  • A team scored 26 points during a football game. This team scored twice as many field goals (3 points each) as it did touchdowns
    5·2 answers
  • Evan made 2 pieces of toast and cut each one into thirds. How many 1/3 toast pieces did Evan have? Draw a model to explain
    9·2 answers
  • Find the surface area
    5·1 answer
  • Solve for x in the equation below.
    8·1 answer
  • Which of the following is NOT an example of mixed fraction?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!