R Ritu Nagar • 4.39K Points Extraordinary Bookmark Embed Report View In MB-Short Q. How do you find the index of the last occurrence of a substring in a string in Java? (A) str.findLast(substring) (B) str.lastIndexOf(substring) (C) str.lastIndexOfChar(substring) (D) str.indexOf(substring) Correct Answer - Option(B) Views: 116 Filed under category JAVA Share
Discusssion
Login to discuss.