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 17 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
Thanks for the timely response, appreciate it


FergA

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

 

Did you know?

There are approximately 3 million unintended pregnancies in the United States each year.

Did you know?

Disorders that may affect pharmacodynamics include genetic mutations, malnutrition, thyrotoxicosis, myasthenia gravis, Parkinson's disease, and certain forms of insulin-resistant diabetes mellitus.

Did you know?

A strange skin disease referred to as Morgellons has occurred in the southern United States and in California. Symptoms include slowly healing sores, joint pain, persistent fatigue, and a sensation of things crawling through the skin. Another symptom is strange-looking, threadlike extrusions coming out of the skin.

Did you know?

Oliver Wendell Holmes is credited with introducing the words "anesthesia" and "anesthetic" into the English language in 1846.

Did you know?

According to the American College of Allergy, Asthma & Immunology, more than 50 million Americans have some kind of food allergy. Food allergies affect between 4 and 6% of children, and 4% of adults, according to the CDC. The most common food allergies include shellfish, peanuts, walnuts, fish, eggs, milk, and soy.

For a complete list of videos, visit our video library