Java, Spring, Microservices, Interview, Coding.
System.out.println(count(str,c)); } private static int count(String str, char c) { int result =0 ; for(int i=0;i<str.length(); i++) { //checking charector in string if(str.charAt(i)==c) { result++; } } return result; } } I’m happy to assist further! If you have any questions, feedback, or specific