Given the String variable str, write an expression that evaluates to the character at index 0 of str.

Given the String variable str, write an expression that evaluates to the character at index 0 of str.

LANGUAGE: JAVA

CHALLENGE:

Given the String variable str, write an expression that evaluates to the character at index 0 of str.

SOLUTION:


str.charAt(0)

Add comment