#help in understanding homework (JAVA)
3 messages · Page 1 of 1 (latest)
3 messages · Page 1 of 1 (latest)
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.
Your class needs a Main method but you can just define another Method?
Create the main method and call the dollarCents in it while passing the parameters to it.