1. Write a program that reads two strings s1 and s2; then calls a method count that counts the number of occurrences of s2 in s1. Main then calls another method that prints the result.
2. Write a program that reads in main the values of two positive integers and two strings; then calls a method that compares the two strings in the part specified by the two integers; the method then calls another method that prints whether the first string portion is smaller than, equal or greater than the second string portion
احتاج الى شرح للسؤالين السابقين مع مثال لوسمحتوا وبسرعة - مع الشكر الجزيل