#help in understanding homework (JAVA)

3 messages · Page 1 of 1 (latest)

glacial wing
#

Hello! I’m working on an assignment in Java, it’s to write a program using public static void dollarCents(String S) now I know how to use Public Static void main but when I replace it with dollarCents, it ends up not working and I can’t run the code.

lusty falcon
#

Your class needs a Main method but you can just define another Method?

tame terrace
#

Create the main method and call the dollarCents in it while passing the parameters to it.