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
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
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
Psychology,
3 months ago
Math,
3 months ago
India Languages,
7 months ago
Social Sciences,
7 months ago
English,
1 year ago