+ 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

7th Dec 2016, 3:37 PM
Linards Liepenieks
Linards Liepenieks - avatar
2 Réponses
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
7th Dec 2016, 4:24 PM
Rishi Anand
Rishi Anand - avatar
0
its simple.... String s = "Linards"; char frist = s[0];
7th Dec 2016, 4:25 PM
Exception Handler
Exception Handler - avatar