can you please look at my code and tell me why my void function isnt showing up?
You need a space between public and void.
Please configure your IDE before continuing to code, you need to be able to see errors as you create them, and to have proper autocomplete.