Joined
Last Seen
-1 Reputation Points
- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 2
- Posts with Downvotes
- 1
- Downvoting Members
- 2
0 Endorsements
Ranked #72.9K
1 Posted Topic
import java.io.*; class CharAt { public static void main(String[] args){ int count=0; try{ BufferedReader object=new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter the String"); String s=object.readLine(); int len=s.length(); System.out.println(len); for(int i=0;i<len;i++) { char char1=s.charAt(i); if(char1=='a') { System.out.println(char1); count++; } } System.out.println("Toatal a----->" +count); } catch(Exception e){} } }
The End.
varungupta456