Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training  
 

charAt()

Ads

 
 

Share on Google+Share on Google+

mafe still
charAt()
1 Answer(s)      8 years ago
Posted in : Java Beginners
Ads
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;
}
}

}
}

Ads









Related Tutorials/Questions & Answers: