Welcome to the forum! Please read
this topic to learn how to post code in code or highlight tags and other useful info for new members.
Please post your code correctly using code or highlight tags per the above link.
--- Update ---
You should be getting a compiler error like:
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
The constructor MyInteger() is undefined
The constructor MyInteger() is undefined
at TestClass.main(TestClass.java:30)
(and this is how you should post errors you want help with).
The reason those errors occur is because the existing constructor MyInteger() requires an int argument. For example, if you changed:
MyInteger integer1 = new MyInteger();
to
MyInteger integer1 = new MyInteger( 5 );
the first error would be resolved. I don't know if that argument value is correct. I just used it as an example.