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
An object in the shape of a thin ring has radius a and mass M. A uniform sphere with mass m and radius R is placed with its cent
madreJ [45]

Answer:

F = GMmx/[√(a² + x²)]³

Explanation:

The force dF on the mass element dm of the ring due to the sphere of mass, m at a distance L from the mass element is

dF = GmdM/L²

Since the ring is symmetrical, the vertical components of this force cancel out leaving the horizontal components to add.

So, the horizontal components add from two symmetrically opposite mass elements dM,

Thus, the horizontal component of the force is

dF' = dFcosФ where Ф is the angle between L and the x axis

dF' = GmdMcosФ/L²

L² = a² + x² where a = radius of ring and x = distance of axis of ring from sphere.

L = √(a² + x²)

cosФ = x/L

dF' = GmdMcosФ/L²

dF' = GmdMx/L³

dF' = GmdMx/[√(a² + x²)]³

Integrating both sides we have

∫dF' = ∫GmdMx/[√(a² + x²)]³

∫dF' = Gm∫dMx/[√(a² + x²)]³    ∫dM = M

F = GmMx/[√(a² + x²)]³  

F = GMmx/[√(a² + x²)]³

So, the force due to the sphere of mass m is

F = GMmx/[√(a² + x²)]³

3 0
3 years ago
As a liquid is added to a beaker, the pressure exerted by the liquid on the bottom
abruzzese [7]

Answer: c) increases

Explanation:

Pressure increases with decreasing height

4 0
3 years ago
A guitar string is 0.620m long, and oscillates at 234Hz. What is the velocity of the waves in the string? m/s
9966 [12]

Answer:

v = 72.54 m/s

Explanation:

We have,

Length of a guitar string is 0.62 m

Frequency of a guitar string is 234 Hz

For guitar string,

L=2\lambda\\\\\lambda=\dfrac{L}{2}\\\\\lambda=\dfrac{0.62}{2}\\\\\lambda=0.31\ m

The velocity of the wave in the string is given by :

v=f\lambda\\\\v=234\times 0.31\\\\v=72.54\ m/s

So, the velocity of the waves in the string is 72.54 m/s.

3 0
3 years ago
If a coworker repeatedly asks you out for a date even though she knows you are not interested, what is she guilty of?
Over [174]
D sexual harassment
5 0
3 years ago
Read 2 more answers
What is the gravitational force on a 35.0 kg object standing on the Earth's surface?
kari74 [83]
F=mg
F=35*9.81
F=343.35N
4 0
3 years ago
Other questions:
  • One of the main differences between the intaglio and the relief printing processes is that with intaglio the ink ________ the su
    15·1 answer
  • Light of wavelength 575 nm passes through a double-slit and the third order bright fringe is seen at an angle of 6.5^degree away
    13·1 answer
  • Convert 3 hours 21 minutes to decimal hours.
    9·1 answer
  • A ball whose mass is 1.9 kg is suspended from a spring whose stiffness is 8.0 N/m. The ball oscillates up and down with an ampli
    10·1 answer
  • As Merrill watches his finger with both eyes open as he brings his finger closer to his nose, he feels his eye muscles working.
    8·1 answer
  • The current running through a toaster oven is 7.5 Amperes when it is connected to 120 volts of potential difference. What is the
    14·1 answer
  • When a light ray is reflected from a surface, the ratio of the angle of incidence to the angle of reflection is
    15·1 answer
  • Kepler’s first law states that:
    7·1 answer
  • Lewis structure for BeCI2<br>​
    14·1 answer
  • One exciting fairground ride acts like a gaint catapuit. The capsule which the 'rider' is strapped in is fired high into the sky
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!