//The java string charAt() method returns a char value at the given index number. The index number //starts from 0.
//If you want to the character at the given index number then use it...........
public class charAtExample {
public static void main(String args[]){
String s="Education Help";
char ch=s.charAt(5);
System.out.println("Character at index number 4 is : "+ch);
//you can also use
//System.out.println(s.charAt(5));
}
}
//Character at index number 4 is : t
//If you want to the character at the given index number then use it...........
public class charAtExample {
public static void main(String args[]){
String s="Education Help";
char ch=s.charAt(5);
System.out.println("Character at index number 4 is : "+ch);
//you can also use
//System.out.println(s.charAt(5));
}
}
//Character at index number 4 is : t