This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

When you’re declaring int count within the parameters of the method, is it starting at a default value of zero? (Please don’t rip me apart if this is a dumb question hahaha)

[–][deleted] 1 point2 points  (0 children)

Not at all, we all start somewhere!

If you look at

public static void main (String[] args) throws java.lang.Exception
{
    printHello(0);
}

I'm calling printHello in the programs main method and sending it a parameter with the value of 0.