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
How many lines are in a quatrain?
Musya8 [376]
In poetry, a quatrain has four lines.  A quatrain is a poem or type of stanza.  
8 0
3 years ago
Read 2 more answers
3. company pays a greater annual salary? Show your Company A offers a semimonthly salary of $2432, and Company B offers a biweek
Eduardwww [97]
Company A offer
2,432×24(semimonthly)
=58,368 per year

Company B offer
2,390×26 (biweekly)
=62,140 per year

So company B pays a greater annual salary

Hope it helps!
5 0
4 years ago
What does it mean to have a market cap?
goblinko [34]

Answer:

a hat tttttttttttttttt

5 0
3 years ago
Hank bought 2.4 pounds of apples. each pound cost $1.95. how much did hank spend on the apples?
sashaice [31]
I believe it would be $4.68, I think

Hope this helps
3 0
3 years ago
Read 2 more answers
Andy's savings account pays 0.3% more interest than Marty's. What is 0.3% written as a decimal number?
poizon [28]

Answer:

A. 0.003

Step-by-step explanation:

When using decimals to represent a percentage it goes as follows:

100% = 1

75% = 0.75

50% = 0.5

25% = 0.25

1% = 0.01

And in the case of this problem: 0.3% = 0.003

6 0
3 years ago
Read 2 more answers
Other questions:
  • Aubrey read 29 books and eli read 52 books. what number is equal to the number of books aubrey read?
    6·1 answer
  • Batteries that normally cost a dollar each are on sale at 25% off. How much will four of these batteries cost
    7·1 answer
  • 3. What is the volume of the triangular<br> prism?
    12·2 answers
  • Can some one help me it's not that hard please i just need help​
    13·1 answer
  • Linear e
    14·1 answer
  • 9x-7i&gt;3(3x-7u)I need the answer please ​
    10·1 answer
  • Pls tell me the rest of the angles. Angle 1 is 112.9 degrees
    15·1 answer
  • Sherly's Plumbing and Howard's Plumbing have different
    8·1 answer
  • Answer ASAP only answer if you know the answer
    8·1 answer
  • Back Next
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!