How do you print duplicate characters from a string?
Answers
Answered by
0
Explanation:
public class DuplicateCharacters {
public static void main(String[] args) {
String string1 = "Great responsibility";
int count;
//Converts given string into character array.
char string[] = string1.toCharArray();
please mark as brainlist
thank you
Similar questions