please tel me the logic behind the code for find the common aphabets between two words??

ex ... mine mind

common letters are : m i n

like

look at the letters in the words and remember which are the same.

Hello Norm,

Those for example not exactly the given task..

Do you have a java programming question?

In a loop, take each letter from the first word one at a time and see if it is present in the second word. If it is, add it to the list of common letters.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.