public class Solution {
public static void main(String[] args) throws Exception {
//在此编写你的代码
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String a = reader.readLine();
String b = reader.readLine();
if(a.compareTo(b)>=0 ){
System.out.println(b);
}
else{
System.out.println(a);
}
if(a == b){
System.out.println(a.equals(b));
}
}
}
package zh.codegym.task.task04.task0418;
/*
两个数字中的最小值
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//在此编写你的代码
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String a = reader.readLine();
String b = reader.readLine();
if(a.compareTo(b)>=0 ){
System.out.println(b);
}
else{
System.out.println(a);
}
if(a == b){
System.out.println(a.equals(b));
}
}
}