Question: must be done with java. It is an introductory class to java please make it as simple as possible Write a cLass called CharSInCommon what

must be done with java. It is an introductory class to java please make it as simple as possible

must be done with java. It is an introductory class to java

Write a cLass called CharSInCommon what it does: 1. ask user for one String 2. ask user for second String 3. Then print the nunber of characters that the Strings have in common You should consider upper case different from lower case letters, but each character that you repor (e.g., the strings "bee" and "peer" only have one character in conmon, namely the letter "e"). Hint: Gather the characters in a third string, and when you find a character that the two words have in comnon, check if it is already in the third string before reporting it t, should be rep orted only once Examples java CharsInCommon enter first word: qweeertyyy enter second word: asdeeefghjk count: 1 java CharsInCommon enter first word: qwertyqwertyqwerty enter second word: qwerty count: 6 java CharsInCommon enter first word: qwertyqwertyqwerty enter second word: qwertyqwerty count: 6 java CharsInCommon enter first word: a enter second word: c count: 0 java CharsInCommon enter first word: enter second word: count: 0

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!