Computer Science, asked by kpopfanboy, 1 day ago

How do you print duplicate characters from a string?​

Answers

Answered by kaurriya259
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