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

Author Question: What is displayed by the following code? System.out.print("A,B;C".replaceAll(",;", "#") + " "); ... (Read 15 times)

colton

  • Hero Member
  • *****
  • Posts: 627

Question 1

What is displayed by the following code?

System.out.print("Hi, ABC, good".matches("ABC ") + " ");
System.out.println("Hi, ABC, good".matches(".*ABC.*"));

◦ true true
◦ true false
◦ false false
◦ false true

Question 2

What is displayed by the following code?

System.out.print("A,B;C".replaceAll(",;", "#") + " ");
System.out.println("A,B;C".replaceAll("[,;]", "#"));

◦ A#B#C A#B#C
◦ A B C A B C
◦ A,B;C A#B#C
◦ A B C A#B#C


Related Topics

Need homework help now?

Ask unlimited questions for free

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

jaykayy05

  • Sr. Member
  • ****
  • Posts: 329
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 39% of students answer this correctly




colton

  • Member
  • Posts: 627
Reply 2 on: May 6, 2020
YES! Correct, THANKS for helping me on my review


tanna.moeller

  • Member
  • Posts: 328
Reply 3 on: Yesterday
Great answer, keep it coming :)

 

Did you know?

This year, an estimated 1.4 million Americans will have a new or recurrent heart attack.

Did you know?

Bacteria have been found alive in a lake buried one half mile under ice in Antarctica.

Did you know?

Allergies play a major part in the health of children. The most prevalent childhood allergies are milk, egg, soy, wheat, peanuts, tree nuts, and seafood.

Did you know?

The average adult has about 21 square feet of skin.

Did you know?

Parkinson's disease is both chronic and progressive. This means that it persists over a long period of time and that its symptoms grow worse over time.

For a complete list of videos, visit our video library