Computer Applications
Write down the syntax to return the first occurrence of 'a' in the word "applications".
Java String Handling
50 Likes
Answer
int res = "applications".indexOf('a');
Answered By
31 Likes
Related Questions
Write down the syntax to compare two Strings(str1, str2) are same or not.
Write down the syntax to extract the last character of a word(wd) stored in the variable chr.
Write down the syntax to replace the word "old" with the word "new" in a given String st = "old is always old"
Write down the syntax to check if the second character of a String(str) is in upper case.