Pre Exam Test Practice (SSC | Banking | IAS | GATE | State Level | CLAT | Railways | Insurance | Teaching Exams | NDA | Defence | IES |State Exam )

Organizational Research By

Surprising Reserch Topic

How to make an Integer instance not nullable

Is there a way to ensure an Integer variable not to be null?

I need to create a list of integer values, so I cannot use int type. I need to work with a List but this will allow null values for elements...

Do I need to use some particular implementation of List or is there some way to set Integer not nullable?

Note I need a List, not a Set.


asked Apr 20, 2015 in Core java by rajesh
0 votes

Related Hot Questions

Government Jobs Opening