write a program in java to remove duplicate character from a word accepted by user
Answers
Answered by
1
Answer:
HEY MATE!!❤
There are three main ways to remove duplicates characters from String in Java; First to sort the character array of string and then remove duplicate characters in linear time. Second, use an auxiliary data structure like Set to keep track of characters already seen and then recreate String from Set.
HOPE IT HELPS!!❤
PLEASE MARK ME AS THE BRAINLIEST!!❤
@BRAINLY.IN
♡♡SRITI♡♡
Similar questions