Question: java thumbs up :) Question 3. (20 pts) Part A: A String str may contain letters (upper and lower case), digits and any other Unicode

java thumbs up :)
java thumbs up :) Question 3. (20 pts) Part A: A String

Question 3. (20 pts) Part A: A String str may contain letters (upper and lower case), digits and any other Unicode character (including spaces). Write Java code to count and print the total number of times each of the following appears in str 1. All upper case letters (A to Z) II. All digits (0 to 9) Part B: Write Java code to determine whether a String pat, occurs at least twice as a substring of the String str. If pat does not occur twice, then concatenate it twice to the end of str. Part C: Suggest two sample email addresses to be used as arguments for a call to the following method, such that the arguments are NOT identical, however, the method will return true. public static boolean agree (String email1, string ema112) String dl - emaill.substring (emaill.indexOf("")); String d2 = email2.substring(email2.indexOf("")); return dl.equals(d2)

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!