In Java, I have a String:
Jamaica
I would like to remove the first character of the string and then return amaica
amaica
How would I do this?
Use the substring() function with an argument of 1 to get the substring from position 1 (after the first character) to the end of the string (leaving the second argument out defaults to the full length of the string).
substring()
1
"Jamaica".substring(1);
1.4m articles
1.4m replys
5 comments
56.9k users