Is it possible to create a number-like class in Java that would allow objects to be created like this:
MyClass x = 3;
Instead of this:
MyClass x = new MyClass(3);
And could be used like this:
float i = x/2;
Instead of this:
float i = x.value()/2;
?