解题思路:
注意事项:
参考代码:
import java.util.Scanner; public class Main { public static void main(String []args) { Scanner in = new Scanner(System.in); String a=in.nextLine(),b=in.nextLine(); if(a.length()!=b.length()) System.out.println("1"); else if(a.length()==b.length()&&a.equals(b)) System.out.println("2"); else if (a.length()==b.length()&&(a.toLowerCase()).equals(b.toLowerCase())) System.out.println("3"); else System.out.println("4"); in.close(); } }
0.0分
0 人评分