Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.


+20 votes
asked in CSC211_Winter2018 by (8 points)

1 Answer

+14 votes

For Math.length() the first index = 1;

But when extracting something from a string. Such as, "Hello"
If I want the "H" letter. The index is 0, so I would use .substring(0,1);

answered by (8 points)