Question: THIS IS A Beginner Course_Introduction to JAVA Note: You Must use API only(Method on String) Given a string, print true if the number of appearances

THIS IS A Beginner Course_Introduction to JAVA

Note: You Must use API only(Method on String)

Given a string, print true if the number of appearances of "is" anywhere in the string is equal to the number of appearances of "not" anywhere in the string (case sensitive).

Sample 1

equalIsNot("This is not") false

Sample 2

equalIsNot("This is notnot") true

Sample 3

equalIsNot("noisxxnotyynotxisi") true

Also, Given a string, replace all the white spaces with V_V and print out the new string.

Sample 1

replaceWhiteSpace(How are you?) HowV_VareV_Vyou?

Sample 2

replaceWhiteSpace(I am good?) IV_VamV_Vgood?"

PLEASE Do NOT use advanced high level syntax.

PLEASE Do NOT use advanced libraries beyond a beginner level.

Also, make sure it compiles before submitting,

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!