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
What are the solutions to the quadratic equation 4x^2-9x-9=0?
gavmur [86]
X = 3, -&#10; \frac{3}{4}
4 0
3 years ago
Read 2 more answers
If you toss 9 fair​ coins, in how many ways can you obtain at least one tail​?
maks197457 [2]
9/18 or 50% if you toss the coin because when you toss 1 coin you get a 1/2 chance of getting tails. Do that nine times and you get 9/18
3 0
3 years ago
The lines below are parallel. If the slope of the solid line is –3, what is the slope of the dashed line?
stepladder [879]

Answer:

-3

Step-by-step explanation:

parallel lines always have the same slope, the y-intercepts will differ

8 0
3 years ago
Jacob sells homemade skateboard decks for a profit of $27 per deck. He is considering switching to a new type of material that w
BARSIC [14]

Answer:

in your equation it says (y=32x) which 32 will mean how much he is charging for each skateboard, x will be how many he sells, and y would be how much he makes from selling them. So if he sold 2 skateboards you would do

Step-by-step explanation:

8 0
3 years ago
What is 75.65 rounded to the nearest whole number?​
Nitella [24]

Answer:

76

Step-by-step explanation:

if the number after period is bigger than 5.. then it's about the number higher than the number befor the period

sorry if u have trouble understanding what I said I'm really not good at explaining:)

5 0
3 years ago
Read 2 more answers
Other questions:
  • Use completing the square to solve for x in the equation [X + (x-3) - 25
    7·1 answer
  • Help please sorry if it's easy​
    14·2 answers
  • The difference between 3 times a number and 21
    10·1 answer
  • If 6 pencils cost $3.60 what is the unit price of the pencils
    12·1 answer
  • What is the answer?!
    7·2 answers
  • 17) Find DE<br> 3r - 28<br> 3r - 30<br> x<br> D<br> G<br> 33<br><br><br> help asapp !!!
    5·1 answer
  • The yearly cost in dollars, y, at a video game arcade based on total game tokens purchased, x, is y = x + 60 for a member and y
    9·1 answer
  • Need help fast plz for my pre calc exam
    5·1 answer
  • Which should i do?
    14·1 answer
  • In the picture below!Please hurry!!
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!