Posts
 
Reputation
Joined
Last Seen
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
1 Commented Post
0 Endorsements
Ranked #72.9K
~247 People Reached
Favorite Forums
Favorite Tags
java x 2

1 Posted Topic

Member Avatar for real thinkers

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){} } }

Member Avatar for Ezzaral
0
247

The End.