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
English,
2 months ago
Hindi,
2 months ago
India Languages,
5 months ago
Social Sciences,
5 months ago
English,
10 months ago
English,
10 months ago