Concept

How do you access individual characters with the String charAt() method?

ComputerScienceOne / String Methods

"Characters in a string are 0-indexed just as with elements in arrays. The charAt() method accesses an individual character by providing an index. String fullName = \"Tom Waits\"; char firstInitial = fullName.charAt(0); //'T' char lastInitial = fullName.charAt(4); //'W' If fullName.charAt(8) == 's', a conditional block can be executed."

Related Ideas

How do you access individual characters with the String charAt() method? | ComputerScienceOne | Bifalgorithm | Bifalgorithm