Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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: 0Step 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