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

Author Question: You compare two strings s1 and s2 using ________. (Read 22 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
:D TYSM


coreycathey

  • Member
  • Posts: 333
Reply 3 on: Yesterday
Thanks for the timely response, appreciate it

 

Did you know?

Asthma-like symptoms were first recorded about 3,500 years ago in Egypt. The first manuscript specifically written about asthma was in the year 1190, describing a condition characterized by sudden breathlessness. The treatments listed in this manuscript include chicken soup, herbs, and sexual abstinence.

Did you know?

Cancer has been around as long as humankind, but only in the second half of the twentieth century did the number of cancer cases explode.

Did you know?

There are 60,000 miles of blood vessels in every adult human.

Did you know?

There are 20 feet of blood vessels in each square inch of human skin.

Did you know?

Drug abusers experience the following scenario: The pleasure given by their drug (or drugs) of choice is so strong that it is difficult to eradicate even after years of staying away from the substances involved. Certain triggers may cause a drug abuser to relapse. Research shows that long-term drug abuse results in significant changes in brain function that persist long after an individual stops using drugs. It is most important to realize that the same is true of not just illegal substances but alcohol and tobacco as well.

For a complete list of videos, visit our video library