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
Can someone please help with these volume equations? 10th grade geometry. will reward brainly
prisoha [69]

Answer:

First picture - 20.42 m

Second picture - 12.9 m

Step-by-step explanation:

------------------------------------------------------------------------------------------------------------

Formula for pyramid:

V=b^2\frac{h}3

Where,

b = base - 3.5 m

h = height - 5 m

Thus,

V=3.5^2\frac{5}{3}

20.41667m^3 ≈ 20.42m^3

------------------------------------------------------------------------------------------------------------

Formula for pyramid:

V=b^2\frac{h}3

Where,

b = base - 3 m

h = height - 4.3 m

Thus,

V = 3^2\frac{4.3}{3}

12.9m^3

------------------------------------------------------------------------------------------------------------

<u><em>Kavinsky</em></u>

6 0
2 years ago
What is the value of cos(150°)?
Arte-miy333 [17]
I use a calculator and made sure it was in degrees

5 0
3 years ago
Read 2 more answers
Find the volume of the solid generated by revolving the region bounded by
Rama09 [41]

Answer:

V =\dfrac{25\pi}{\sqrt{2}}

Step-by-step explanation:

given,

y=5√sinx

Volume of the solid by revolving

V = \int_a^b(\pi y^2)dx

a and b are the limits of the integrals

now,

V = \int_a^b(\pi (5\sqrt{sinx})^2)dx

V =25\pi \int_{\pi/4}^{\pi/2}sinxdx

\int sin x = - cos x

V =25\pi [-cos x]_{\pi/4}^{\pi/2}

V =25\pi [-cos (\pi/2)+cos(\pi/4)]

V =25\pi [0+\dfrac{1}{\sqrt{2}}]

V =\dfrac{25\pi}{\sqrt{2}}

volume of the solid generated is equal to V =\dfrac{25\pi}{\sqrt{2}}

4 0
3 years ago
Jonathan is rolling to dice and needs to roll and 11 to win the game he is playing what is the probability that Jonathan wins th
hjlf

Answer:

1 / 18

Step-by-step explanation:

In a roll of two dice :

Number of faces on a dice = 6

Total sample space for 2 6-sided dice = (number of faces)^Number of dice = 6^2 = 36

Total possible outcomes = 36

Required outcome = sum of 11

11 = {(5,6) ; (6, 5)}) = 2 possibilities

Probability = required outcome / Total possible outcomes

P(obtaining a sum of 11) = 2 / 36 = 1/18

5 0
2 years ago
Can someone help me on this it is so confusing to me. Will give Brainliest!
quester [9]

Answer:

Step-by-step explanation:

Janet uses less than 4 cups of flour because 3/8 is less than one.

4 0
3 years ago
Read 2 more answers
Other questions:
  • What is the answer to 8(g+2)=2(23-g)
    11·2 answers
  • if each of the 254 students who perform on stage has 3 friends come to see the musical, and each of the 137 students working bac
    12·1 answer
  • Is 7.6 repeating greater or less than square root 55
    13·2 answers
  • 3. Which property of multiplication is shown 1. X = X (a) associative (b) commutative (c) distributive (d) identity​
    11·1 answer
  • 3a-6b/3ab<br><br> Steps please. Not sure if I originally did this question correctly.
    9·1 answer
  • Help me please!!!!!!!!!!!
    12·1 answer
  • Please can you answer this|! I have 4 minutes until it's due!
    12·2 answers
  • Please pls pls asap help
    5·1 answer
  • Immediate help needed !!!!!!!! plz help me !!!! with this question​
    11·1 answer
  • Demarcus has to wrap a gift for his friend's birthday party. The gift is in a rectangular box with the dimensions shown below. H
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!