Question: Write a program with java Problem-1 Write a program that takes two strings sl and s2 as inputs and checks whether string sl is a
Write a program with java

Problem-1 Write a program that takes two strings sl and s2 as inputs and checks whether string sl is a substring in string s2. Example-1: Input: s1 = "abc" s2 = "ababc" Output: true Example-2: Input: s1 = "abc" s2 = "ababa" Output: false
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
