SyntaxFix
Write A Post
Hire A Developer
Questions
int is a primitive data type . It is not a reference variable which can take null values . You need to change the method return type to Integer wrapper class .
int
null
Integer