Coding Fun Java Java program to check the no.of occ of a character within the given string without using any loop

Java program to check the no.of occ of a character within the given string without using any loop





Java program to check the no.of occurrences of a given character within the given string without using any loop
—————————————————————————————————————————
import java.util.Scanner;

public class Test {
public static void main(String[] args) {
Scanner s= new Scanner(System.in);
System.out.print(“Enter your String=”);
String str=s.nextLine();
System.out.println(“Your String=”+str);
Scanner r=new…

Tags: , , , , , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *