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
in a one dimensional collision, a 4kg object and 6 kg onject have initial velocity. calculate the magnitude of impulse
Greeley [361]

in a one dimensional collision, a 4kg object with 5ms^1 and 6 kg object with 2ms^1 have initial velocity, the magnitude of impulse is 12 , 18

given,

mass 1 = 4kg

mass 2 = 6kg

velocity 1 = 5ms^1

velocity 2 = 2ms^1

impulse 1 = 4*(5-2)

= 12

Impulse 2 = 6*(5-2)

= 18

Learn more about impulse here

brainly.com/question/16980676

#SPJ4

8 0
1 year ago
Hey can anyone help me out in dis pls!
patriot [66]

Answer:

D

Explanation:

3 0
3 years ago
Read 2 more answers
If a cat can exert 2000N Of Force to move a trailer 50m is 20 seconds how much power did the car use ?
inessss [21]

им putins брат, почему вы обманываете нашу систему образования, Это теперь запрещено в России.

8 0
2 years ago
A cheetah runs 5 miles in 60 seconds. How fast did the cheetah run in MILES per HOUR? Convert seconds into hours first, then sol
Vinil7 [7]

Answer:

300 miles per hour

Explanation:

Speed is distance per unit time, expressed as s=d/t where t is the time taken, d is distance covered and s is the speed.

Convering s to hrs

To convert seconds to hours, we knkw that 1 hour has 60 minutes and each minute has 60 seconds. Therefore, 1 hour has 60*60=3600 seconds

If 3600s=1 h

60 s=?

By cross multiplication 60s*1 h/3600s=1/60 hours

Given distance as 5 miles and time as 1/60 hours then the speed will be 5 divided by 1/60 hrs which is equivalent to 5*60=300 miles per hour

6 0
3 years ago
What do we call the potential mechanical energy stored in an object when work is performed to change its shape?
Tom [10]
C) kinetic energy :)
7 0
2 years ago
Other questions:
  • What is a scale on a map?
    11·1 answer
  • A dolphin in an aquatic show jumps straight up out of the water at a velocity of 15.0 m/s. (a) List the knowns in this problem.
    5·1 answer
  • What are the three main ideas associated with Newton’s second law of motion? List these in your own words .
    6·1 answer
  • What is the magnitude (in N/C) and direction of an electric field that exerts a 3.50 ✕ 10−5 N upward force on a −1.55 µC charge?
    15·1 answer
  • Calcalculate potential energy given to a potato sack having a mass of 2 kg as I raise it to a height of 450 CM ​
    6·1 answer
  • a hiker walks 200 m west and then walks 100 m north in what direction is her resulting displacement draw to show your answer​
    9·1 answer
  • QUESTION 3
    12·1 answer
  • Abishek is a runner. He runs the 100 m sprint
    5·2 answers
  • Give two examples of situations or applications where electronic circuits and electric circuits are used together​
    13·1 answer
  • Question 2 of 10
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!