50,530
社区成员
发帖
与我相关
我的任务
分享
public class Test
{
public static void main(String[] args)
{
test("");
testNotNull("testNotNull");
testNull(null);
}
static void test(String s)
{
if (s!=null&&s.trim().length() == 0 || s == null)
System.out.println("test");
}
static void testNotNull(String s)
{
if (s!=null&&s.trim().length() == 0 || s == null)
System.out.println("testNotNull");
}
static void testNull(String s)
{
if (s!=null&&s.trim().length() == 0 || s == null)
System.out.println("testNull");
}
}