Computer Science, asked by shreyajha60, 1 month ago

input two words and print common letters in java program​

Answers

Answered by Feirxefett
1

Answer:

How To Print Common Characters Between Two Strings In Alphabetical Order In Java?

char[] firstStringToCharArray = firstString. replaceAll(“\\s+”, “”). ...

Set<Character> firstStringSet = new TreeSet<>(); ...

for (char c : firstStringToCharArray) ...

for (char c : secondStringToCharArray) ...

firstStringSet. ...

Output : ...

Related Programs :

Answered by kumaranandsoni11
1

Answer:

bsbdbhxhywgsnhd

bsbehrhhdhdus

Explanation:

hehheydue hehheueu

Similar questions