Net-informations.com
SiteMap  | About    

String charAt() Method

Java String charAt() returns the character located at the specified index in String. The string indexes start from zero and ranges from 0 to length() - 1.

Syntax:

Example

Output

It is important to note that, it will thrown an IndexOutOfBoundsException if the index is less than zero or greater than equal to the length of the string (index<0 index>=length()).

String Change to Uppercase

String toUpperCase()

Java String toUpperCase() converting the string to uppercase without needing to assign the result to a new variable.

Example

String Change to Lowecase

String toLowerCase()

Java String toLowerCase() converting the string to lowercase without needing to assign the result to a new variable.

Example









net-informations.com (C) 2017    Founded by raps mk
All Rights Reserved. All other trademarks are property of their respective owners.