Java, pls use loop and stringsWrite a public class call StringMethods with a main method.what it does:0. prompt user for a String – read String1. prompt user for an int – read integer2. if integer is 0 end program3. if String is “0”, end program4. if integer is not between 1 and 10 go back to step 05. if integer is between 1 and 10 (inclusive) perform the operation and print the message that matches the examples below. Each number corresponds to a different operation.6. repeat from step 0enter a string (end with 0): abcABC123enter an int
PayPal Gateway not configured
PayPal Gateway not configured