Code have created lot of confusions

in the public ststic void main function why you have used display fuction in whole program there is no display used how you have called it and you havent removed the functions which were created in the last program because of that i have got more confusions.