This topic contains a solution. Click here to go to the answer

Author Question: You compare two strings s1 and s2 using ________. (Read 24 times)

Diane

  • Hero Member
  • *****
  • Posts: 576

Question 1

"smiles".substring(1, 5) returns "mile".
◦ true
◦ false

Question 2

You compare two strings s1 and s2 using ________.
◦ compareTo(s1, s2)
◦ compare(s1, s2)
◦ s1.compareTo(s2)
◦ s1.compare(s2)


Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by Diane on May 6, 2020

potomatos

  • Sr. Member
  • ****
  • Posts: 338
Lorsum iprem. Lorsus sur ipci. Lorsem sur iprem. Lorsum sur ipdi, lorsem sur ipci. Lorsum sur iprium, valum sur ipci et, vala sur ipci. Lorsem sur ipci, lorsa sur iprem. Valus sur ipdi. Lorsus sur iprium nunc, valem sur iprium. Valem sur ipdi. Lorsa sur iprium. Lorsum sur iprium. Valem sur ipdi. Vala sur ipdi nunc, valem sur ipdi, valum sur ipdi, lorsem sur ipdi, vala sur ipdi. Valem sur iprem nunc, lorsa sur iprium. Valum sur ipdi et, lorsus sur ipci. Valem sur iprem. Valem sur ipci. Lorsa sur iprium. Lorsem sur ipci, valus sur iprem. Lorsem sur iprem nunc, valus sur iprium.
Answer Preview
Only 55% of students answer this correctly




Diane

  • Member
  • Posts: 576
Reply 2 on: May 6, 2020
Great answer, keep it coming :)


apple

  • Member
  • Posts: 352
Reply 3 on: Yesterday
Wow, this really help

 

Did you know?

The first-known contraceptive was crocodile dung, used in Egypt in 2000 BC. Condoms were also reportedly used, made of animal bladders or intestines.

Did you know?

Though the United States has largely rejected the metric system, it is used for currency, as in 100 pennies = 1 dollar. Previously, the British currency system was used, with measurements such as 12 pence to the shilling, and 20 shillings to the pound.

Did you know?

More than 150,000 Americans killed by cardiovascular disease are younger than the age of 65 years.

Did you know?

The first successful kidney transplant was performed in 1954 and occurred in Boston. A kidney from an identical twin was transplanted into his dying brother's body and was not rejected because it did not appear foreign to his body.

Did you know?

Vaccines cause herd immunity. If the majority of people in a community have been vaccinated against a disease, an unvaccinated person is less likely to get the disease since others are less likely to become sick from it and spread the disease.

For a complete list of videos, visit our video library