Question: Answer this question quickly please. As soon as possible, please. Thanks a lot Sir 3. Take two Strings as input from the console and print
Answer this question quickly please.
As soon as possible, please.
Thanks a lot Sir
3. Take two Strings as input from the console and print the substring of the first string that starts after the first occurrence of second string and ends before the last occurrence of second string in the first string. If there are less than two occurrence of second string in the first string, print 'Not Applicable'. (Hints: Use string.indexOf(substring) and string.lastIndexOf(substring) function] [5] Sample Input: Haysvapplebangladeshappledfhb apple Output: bangladesh Sample Input: Absiapplembappeappleghhshsapplechdk apple Output: mbappeappleghhshs Sample Input: Ansssafbwqqlevddifrv fb Output: Not Applicable
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
