Computer Science, asked by aamolia1969, 5 months ago

Write a program to accept a String and display only those letters which are consecutives.

Input: UNDERSTANDING COMPUTER APPLICATIONS

Output: D, E

R, S

S, T​

Answers

Answered by jainbhavna400
2

Answer:

program to print all duplicate characters in a string

Create a hashMap of type {char, int}.

Traverse the string, check if the hashMap already contains the traversed character or not.

If it is present, then increment the count or else insert the character in

Answered by Anonymous
0

┏━━━━•❅•°•❈ ↯ •°•❅•━━━━┓

here's your answer

┗━━━━•❅•°•❈ ↯ •°•❅•━━━━┛

Lymphocytes ✍

✒They have round shaped nucleus.

Monocytes ✍

✒They have horseshoe shaped or kidney shaped nucleus.

✥Hope it helps❢❢

⎘ ⎘ ⎘ ⎘ ⎘ ⎘ ⎘ ⎘ ⎘ ⎘ ⎘ ⎘ ⎘ ⎘ ⎘

Similar questions