Java help ........ plz respond quickly
                            
                            
 
  
                   
                    
                   
          
                          
        
      
      
        
                       
                       
                         
                         
                           
                              
                         
                         
                         
                          
                                 guys i need help with this.
string s = nepal is beautiful.
so how do i find number of vowel "a" or number of consoant "L" from the string.
.
 
                          
                         
                          
          
                              
                         
                         
                           
                              
                         
                         
                          
                         just a flow chart only, i don't know much abt specific language, but should work.
count=0
for i=1 to length of s
    if s[i]="a" count++
end i
count is ur number of a 
 
                          
                          
							
                              
                         
                         
                           
                              
                         
                         
                          
                         
public void strConvert () {
String myString = 
"nepal is beautiful.";
int countA = 0;
int countL = 0;
for (int i = 0; i < myString.length(); i++) {
if (myString.charAt(i) == 'a') {
countA++;
}
if (myString.charAt(i) == 'l') {
countL++;
}
}
System.
out.println("Number of a = " + countA);
System.
out.println("Number of l = " + countL);
}
 
                          
                          
							
                              
                         
                         
                           
                              
                         
                         
                          
                         thanks for the help guys,....... i am taking my first ever programming class so  i am going little crazy figuring it out......anyway thanks for the time and help 
                         
                          
							
                              
                         
                         
                           
                              
                         
                         
                          
                         http://java.sun.com/docs/books/tutorial/ 
                         
                          
							
                              
                         
                         
                           
                              
                         
                         
                          
                         dhimaar1 - i have an excellent book on Java called: Java: An eventful approach. I am sure you'll find it extremely handy...it's brand new but I am willing to sell it to you for as low as 50 bucks. If you want it do email! 
 
 
                          
                          
							                    
                                                   
							  
            
   
   
   							
                            
                            
 
 
 
                            
						
                        
                        	Please log in to reply to this post
                            You can also log in using your Facebook
                         
 
                         
   
 
 
 
 
 
 
 
 
 
 
 
 
What people are reading
	
 
 
  
You might like these other discussions...
         
    
    
    
    
    
    
    	
        
       
         · Posts 16 
· Viewed 10821 
· Likes 3
 
     
 
    
    
    
    
    
    
    	
        
       
         · Posts 8 
· Viewed 6660 
· Likes 3
 
     
 
    
    
    
    
    
    
    	
        
       
         · Posts 1 
· Viewed 3388 
· Likes 3
 
     
 
    
    
    
    
    
    
    	
        
       
         · Posts 1 
· Viewed 3610 
· Likes 3
 
     
 
    
    
    
    
    
    
    	
        
       
         · Posts 11 
· Viewed 14120