摘要: //前提为a、b均不能为null if(a.compareTo(b) == -1){ System.out.println("a小于b"); } if(a.compareTo(b) == 0){ System.out.println("a等于b"); } if(a.compareTo(b) == 1 阅读全文
posted @ 2022-01-08 11:32 cchilei 阅读(78) 评论(0) 推荐(0) 编辑