性别

public class jh_10_str的equals {
public static void main(String[] args) {
// String str = "男";
// str = null;
//NullPointerException
// if(str.equals("男")) {
//
// }
// if ("男".equals(str)) {
//
// } else {
//
// }

//String str = "男";

if() {
// 根据性别
if() {

}else {

}

}else {

}











}
}

原文地址:https://www.cnblogs.com/fxlcd/p/11384178.html