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/29 19:14:12
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;}.如
xRN@"mB -lH&6}E! ,P # aA33N;ugԸ133̙{;լ"oa&]6,ٖt(rmA';m7σ r8:

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 意思是返回一个空值
并且跳出方法 所以下面的代码不会在执行了