public static Customer hasCustomer(String id,String pwd) { if ( ( id == null || id.length() < 1) &&public static Customer hasCustomer(String id,String pwd){if ( ( id == null || id.length() < 1) && (pwd == null || pwd .length() < 1)){return null;}.如

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/26 21:48:44
publicstaticCustomerhasCustomer(Stringid,Stringpwd){if((id==null||id.length()publicstaticCustomerhas

public static Customer hasCustomer(String id,String pwd) { if ( ( id == null || id.length() < 1) &&public static Customer hasCustomer(String id,String pwd){if ( ( id == null || id.length() < 1) && (pwd == null || pwd .length() < 1)){return null;}.如
public static Customer hasCustomer(String id,String pwd) { if ( ( id == null || id.length() < 1) &&
public static Customer hasCustomer(String id,String pwd)
{
if ( ( id == null || id.length() < 1) && (pwd == null || pwd .length() < 1))
{
return null;
}
.
如果if语句成立,下面的语句还会执行吗,下面不存在else语句,return null

public static Customer hasCustomer(String id,String pwd) { if ( ( id == null || id.length() < 1) &&public static Customer hasCustomer(String id,String pwd){if ( ( id == null || id.length() < 1) && (pwd == null || pwd .length() < 1)){return null;}.如
不会执行,return 不仅仅有返回的意思 还有跳出的意思 return null 意思是返回一个空值
并且跳出方法 所以下面的代码不会在执行了