Please note what it says on the
title page of this forum
We're all here to learn, so when responding to others, please focus on helping them discover their own solutions, instead of simply providing answers.
It does not help the OP to be told the answer like that; it reduces the educational value of the discussion. Please don't be annoyed, but I have pulled rank and removed part of your pots.
It might be worth reading about overloading in the
Java Language Specification, but it is by no means easy to read. You may need to go on to ยง
15.12.2.