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
Which equation is in point-slope form and is depicted by the line in this graph?
Gala2k [10]
C is the answer.........................
8 0
3 years ago
The distance from Jamestown to Kenneville is 180 miles, the distance from Kenneville to Elizabeth City is 300 miles, and the dis
Marina86 [1]

Answer:

B the anser is B

Step-by-step explanation:

you hafto to do it like B bc its the most comen sens one

6 0
3 years ago
Which one of the following examples represents a repeating decimal?
Minchanka [31]
The answer is D. 0.6666666.
3 0
3 years ago
What is the absolute value of -2/2​
Evgesh-ka [11]

-2/2 = -1/1 = -1

Therefore, the absolute value of -2/2 is -1.

6 0
3 years ago
Read 2 more answers
Find the length of l on the curve r(t)=5cos(3t)i-5sin(3t)j+3tk over the interval [3,7]
stealth61 [152]
\mathbf r(t)=5\cos3t\,\mathbf i-5\sin3t\,\mathbf j+3t\,\mathbf k
\mathrm d\mathbf r(t)=\mathbf r'(t)\,\mathrm dt=(-15\sin3t\,\mathbf i-15\cos3t\,\mathbf j+3\,\mathbf k)\,\mathrm dt

\displaystyle\int_C\mathrm d\mathbf r(t)=\int_{t=3}^{t=7}\|\mathbf r'(t)\,\mathrm dt\|=\int_{t=3}^{t=7}\sqrt{225\sin^23t+225\cos^23t+9}\,\mathrm dt
=\displaystyle3\sqrt{26}\int_{t=3}^{t=7}\mathrm dt
=12\sqrt{26}
4 0
3 years ago
Other questions:
  • What is 29 fifths as a mixed number
    7·2 answers
  • Which of the following statistical measures is least appropriate for describing the data set shown below?
    8·2 answers
  • ANSWER NOW PLEASE!!!!!​
    9·2 answers
  • 12.) Given the following information, determine which lines, if any, are parallel. State the converse that justifies your answer
    9·1 answer
  • Four thousand three hundred twenty-one-ten thousand l
    11·1 answer
  • Y=−2x+4 when y equals -2 what is x? PLZ HELP URGENT!
    12·1 answer
  • The sum of three consecutive even integers is –78
    15·1 answer
  • The sum of three consecutive even<br>numbers is 72. What is the smallest of<br>these numbers?​
    7·1 answer
  • I need to know the answer please
    8·1 answer
  • #26 What are the solutions to the equation 4x2 - 52x + 169 = 121?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!