如何在 print 语句中编写 if 语句?
public boolean checkEmpty()
{
if(array.isEmpty)
{
Sytem.out.println("The List is empty");
}
else
{
System.out.println("The list has: " + if(array.size() > 1)) {"Items"} + else {"item"} );
}
}