How Do You Alter A Default Constructor In Java?
To put it simply, your constructor has absolutely nothing to do with your problem. This constructor doesn’t do anything with display at all (other than set the Colour). You’ll need to look at whatever code you have that displays your values to look for your problem. The problem is not here. EDIT: I’m guessing that “Frog” is a display element. If the creation of your Frog objects is what places them on your display (possible with some UI APIs), you might want to take a look at the order that you create op1, op2, tens, and units that you pass into this constructor.