The charAt() method of the String class is used to extract a single character from a given string. The general form of the charAt() method is as follows:
Here, “where” specifies the index value of the character that is to be extracted from a given string. This index value must always be positive and refers to a position within a given string.
Download free practice test for SUN SCJA exam. Pass SCJA in first attampt.
Like this article? Share it with others
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
If you like this article, please leave a comment or subscribe this blog via RSS or via e-mail, Bookmark and share through your network. Click the AddThis button below. Thanks.
