Comment vérifier si un entier est nul ou nul en Java?

Est-il plus concis pour écrire

if (myInteger != null && myInteger != 0) { ... }

Par exemple, pour les Chaînes de caractères que vous pouvez utiliser StringUtils.isBlank()

source d'informationauteur Mykhaylo Adamovych