Hi,
I want to make a data type in
java so that only positive integers can come in that data type.
It means if we try to assign -4 to it, it should not accept that but 4(positive) should be accepted.
Can anybody tell if it is possible in java?. If yes, how?
-Raj