Advertisements
Advertisements
Question
Write down the syntax to perform the following task:
To return the first occurrence of 'a' in the word "applications".
One Line Answer
Solution
int n = "applications".indexOf('a');
shaalaa.com
Is there an error in this question or solution?