Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 ApplicableStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started