👻 Check our latest review to choose the best laptop for Machine Learning engineers and Deep learning tasks!
The syntax of the String charAt () method is quite simple. Let’s start with the channel we want to look at. Since this is a String object, we use dot notation to access the method and bind it at the end. To invoke it, we add parentheses at the end with the index we want to find.
charAt () method returns the character at this index in the string. Remember that strings are zero-based, so indices start at 0 and start from there in sequential order. Here’s a working implementation - use inputs to add a string and index, then hit enter. Unless you requested an out-of-range index, it should return a single character in the requested index.
What should you watch next?