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 aAnswer 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!