Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.


+20 votes
asked in CSC211_Winter2018 by (1 point)

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 (1 point)