0

Can any one tell me how can l call a character of a string type variable

How can i call for e.g character 'h' from String hi = "hello"; Which method l should use to call it .

19th Dec 2019, 7:19 PM
Joi Jo
Joi Jo - avatar
3 Antworten
+ 1
"hello".charAt(0);
19th Dec 2019, 7:45 PM
Abdol Hashimi
Abdol Hashimi - avatar
19th Dec 2019, 7:47 PM
rodwynnejones
rodwynnejones - avatar
0
Thank you
19th Dec 2019, 8:28 PM
Joi Jo
Joi Jo - avatar