Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


mafe still
charAt()
1 Answer(s)      5 years and 9 months ago
Posted in : Java Beginners



Advertisement
View Answers

January 29, 2009 at 11:08 PM


public class CharAt{
public static void main(String[] args) {
System.out.println("CharAt Example!");
String myString ="My Name is Vinod Kumar";
int strLen=myString.length();
for (int i=1; 1<strLen-1; i++){
if(myString.charAt(i)=='V'){
System.out.println("Found");
break;
}
}

}
}


Related Tutorials/Questions & Answers:
Advertisements
 

 

 

DMCA.com