To manipulate string, java.lang.StringBuffer class comes with many methods, otherwise which will take long laborious coding as in C/C++. One such method is charAt(int) that returns the character at the specified index number passed as argument to the method. What Java API says: public synchronized char charAt(int index): Returns the character present at the specified […]
↧