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
Look at the picture ASAP
goldenfox [79]
Using the Laws of Cosine, we obtain C^2 = 55^2+108^2-2(108)(55)*cos(59), which c approximately equals 153.44. So Line AB ≈ 153.44 meters.  
8 0
3 years ago
42.1% of 375.4 =
igomit [66]
The answer is 0.744 just do the math 
7 0
3 years ago
Find the missing number:
nirvana33 [79]

Answer:

20%

Step-by-step explanation:

Not sure if this is exactly correct, but let's say we start with 1 unit. If it increased by 25%, we get:

1 × 1.25 = 1.25 units.

Now, to get back to 1 unit, we need to find:

1.25 × ?  = 1

? = \frac{1}{1.25} = 0.80

So, 100% - 80 % = 20%

A 20% decrease.

Not completely sure though.

8 0
2 years ago
The square below represents one whole.
natulia [17]
Fraction: 2/100
Decimal: 0.02
Percent: 2%
8 0
2 years ago
Which graph shows the solution to the inequality -x+2&gt; 1
mixas84 [53]
I need the graphs to help you, sorry ;_;
5 0
3 years ago
Other questions:
  • A box contains five slips of paper, marked $1, $1, $10, $25, and $25. The winner of a contest selects two slips of paper at rand
    14·1 answer
  • A line has a slope of 2 and a y intercept of (0,-4) what is the value of y when x=6
    13·1 answer
  • Whichrule how to find the number of triangles if you know the number of squares?
    8·1 answer
  • What is the volume of a box with a with of 1 and one half inches, a length of 2 and one half inches and a height of 4 inches
    15·1 answer
  • Help me plz quick only 5 mins​
    9·1 answer
  • What is the equation of the line that has a slope of 3 and passes through the point (1, –2)?
    9·1 answer
  • The product of 16 and the variable of p
    6·2 answers
  • Please help!
    9·1 answer
  • 2. Craig read 3 books each week for 3 weeks. Joe read 4 books a week for 3 weeks. How many more books did Joe read? Choose the a
    9·1 answer
  • Susan earned $191.25 last week. She is paid<br> $8.50/h. How many hours did she work?
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!