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
Alinara [238K]
3 years ago
6

Before using a string in a comparison, you can use either the To Upper method or the To Lower method to convert the string to up

per case or lower case, respectively, and then use the converted string in the comparison.1. True2. False

Physics
1 answer:
diamong [38]3 years ago
3 0

Answer:

True, check attachment for code

Explanation:

To convert java strings of text to upper or lower case, we can use and inbuilt methods To Uppercase and To lower case.

The first two lines of code will set up a String variable to hold the text "text to change", and then we print it out.

The third line sets of a second String variable called result.

The fourth line is where the conversion is done.

We can compare the string

We can compare one string to another. (When comparing, Java will use the hexadecimal values rather than the letters themselves.) For example, if we wanted to compare the word "Fat" with the word "App" to see which should come first, you can use an inbuilt string method called compareTo.

Check attachment for the code

You might be interested in
a positively charged body makes contact with a body. after a while, the charged body becomes neutralised. state 3 main condition
MrRa [10]

Answer:

A body will become positively charged when some electrons will come out from the body.Thus, positive charge is due to deficiency of electrons.

5 0
2 years ago
If the mass of a material is 50 grams and the volume of the material is 12 cm^3, what would the density of the material be?
AlekseyPX
The density of the material would be 
25/6 grams per cm^3.
to obtain the result above this is what we do:
density is calculated as: (the mass of the given material or object) / volume of the material 
which leads us to 50grams /12cm^3
 
4 0
3 years ago
In our solar system, the most likely planet (other than Earth) to have life on it is currently thought to be
VLD [36.1K]

Answer: Mars

Explanation:

Mars is a planet similar to the earth which the rest can't sustain life either because it's too hot or cold or too much gas maybe even toxic acid.

6 0
3 years ago
Which of the following is true A. If the sum of the external forces on an object is zero, then the object must be in equilibrium
yanalaym [24]

Answer:

A. If the sum of the external forces on an object is zero, then the object must be in equilibrium

Explanation:

Equilibrium, in physics, the condition of a system when neither its state of motion nor its internal energy state tends to change with time.

For a single particle, equilibrium arises if the vector sum of all forces acting upon the particle is zero.

the object is at equilibrium, then the net force acting upon the object should be 0 Newton. Thus, if all the forces are added together as vectors, then the resultant force (the vector sum) should be 0 Newton.

There are three types of equilibrium: stable, unstable, and neutral

3 0
3 years ago
Peak to peak value of voltage is
hram777 [196]

Answer: Peak-to-peak voltage is the distance from the lowest negative amplitude, or trough, to the highest positive amplitude, or crest, of the AC voltage waveform. In other words, peak-to-peak voltage is equal to the full height of the waveform. Peak-to-peak voltage can be found using peak voltage or RMS voltage.

Explanation:hope tht gave u a clue have a wonderful Christmas Eve time with your family!❄️

3 0
2 years ago
Read 2 more answers
Other questions:
  • A 13-cm-diameter cd has a mass of 25 g . part a what is the cd's moment of inertia for rotation about a perpendicular axis throu
    5·2 answers
  • how much heat must be added to 30.0 g of solid iron to melt it, assuming the iron is already at it's melting point?​
    14·1 answer
  • Which of Newton's laws accounts for the following statement?
    12·2 answers
  • A child of mass 47 kg sits on the edge of a merry-go-round with radius 1.3 m and moment of inertia 56.3953 kg m2 . The merrygo-r
    15·1 answer
  • You throw a 50.0g blob of clay directly at the wall with an initial velocity of -5.00 m/s i. The clay sticks to the wall, and th
    6·1 answer
  • A football player kicks a ball horizontally off a hill with an initial velocity of 42.0 m/s. It travels a horizontal distance of
    6·1 answer
  • If a body with a mass of 4 kg is moved by a force of 20 N, what is the rate of its acceleration?​
    9·1 answer
  • The kinetic energy of an object depends on what?
    13·2 answers
  • 2. List a similarity between magnetic force and gravitational force,
    12·1 answer
  • What is the rate of photosynthesis?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!