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
A spinner is divided into 10 equal parts and numbered from 1 through 10. What is the probability of spinning a number less than
r-ruslan [8.4K]
You can count from 6-10 and you would get c) 5/10
5 0
3 years ago
Find the measure of ∠A, round to the nearest tenth.
Marina CMI [18]
I think is 70 because you first sum 18 + 6, then your answer is 24 and you subtract 90 - 24 because the triangle is a right angle that is 90 degrees. That got me 66 and I round it to the nearest tenth and I get 70.
7 0
3 years ago
In the parallelogram above, BE= 7x-12, CE=10x-5, and DE= 3x+4. What is the length of BD​
kompoz [17]

ABCD is a parallelogram ⇒ BE = DE

So: 7x - 12 = 3x + 4

⇔ 7x - 3x = 4 + 12

⇔ 4x = 16

⇔ x = 16/4 = 4

⇒ BE = 7(4) - 12 = 28 - 12 = 16

⇒ DE = 3(4) + 4 = 12 + 4 = 16

⇒ BD = BE + DE = 16 + 16 = 32

Answer: BD = 32

Ok done. Thank to me :>

3 0
2 years ago
Need to answer in equation
worty [1.4K]

Answer: A. is correct

Step-by-step explanation:

5 0
4 years ago
Read 2 more answers
Question 10 of 10<br> 2 Points<br> If A = (4,-5) and B = (7,-9), what is the length of AB?
OlgaM077 [116]
This is it my friend m= -4/3
7 0
3 years ago
Read 2 more answers
Other questions:
  • How many three-letter words have at least two letters the same?
    9·1 answer
  • This table shows numbers of sweets in some tubes, but a coffee stain has deleted one of the figures.
    13·1 answer
  • Two fair coins are flipped and a fair number cube is rolled. What is the sample space of possible outcomes?
    14·1 answer
  • Please answer this correctly
    5·2 answers
  • Write an equation in slope-intercept form for the line with slope -1/3 and y-intercept 7
    15·1 answer
  • a rectangle has a perimeter of 158 cm and the given area of 804 cm^2 Its length is 7 more than five times its width. Write and s
    10·1 answer
  • Simplify the following expression to an answer with only positive exponents.
    8·1 answer
  • What is 3(2x -5) + 10 ≥ 25?
    7·2 answers
  • Could someone help me?
    11·1 answer
  • At a certain college, 49% of the students are female, and 21% of the students major in civil engineering. Furthermore, 8% of the
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!