mafe still
charAt()
1 Answer(s)      7 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;
}
}

}
}









Related Tutorials/Questions & Answers: