diff --git a/noOfDoubleLetters.java b/noOfDoubleLetters.java new file mode 100644 index 0000000..f30f55e --- /dev/null +++ b/noOfDoubleLetters.java @@ -0,0 +1,24 @@ +import java.util.*; +public class noOfDoubleLetters +{ + public static void doubleLetters(String s) + { + char ch=' '; char[] array=new char[s.length()]; + array =s.toCharArray();int j=0; + outer: + for(int i=0;i