As simply as:
if (numbers.isEmpty()) {...}
Note that a quick look at the documentation would have given you that information.
As simply as:
if (numbers.isEmpty()) {...}
Note that a quick look at the documentation would have given you that information.