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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started