how to find common suffix in java by using method
问题 How to find common suffix in java by using method public static String commonSuffix (String s1, String s2) I can't return the result in method. Please help me import java.util.Scanner; public class ders1 { public static void main(String[] args) { //HW3 Topic 3 Scanner input = new Scanner(System.in); String reverse1=""; String reverse2=""; System.out.println("Please enter the first string: "); String s1=input.nextLine(); System.out.println("Please enter the second string: "); String s2=input