+ 1
How to find which char comes first in a string
String cake which char first c or k plz explain how to find a char
2 Answers
0
Run a loop on characters of the string through its index. Inside the loop put a condition to check whether if it's C or K
0
its simple....
String s = "Linards";
char frist = s[0];