Question: Write Java ( define ) a public static method named countDown, that takes one int argument and returns no value. You can safely assume that

Write Java (define) a public static method named countDown, that takes one int argument and returns no value. You can safely assume that argument will always be a positive integer. When this method is called, it should print a count from the argument value down to (and including 1).
Examples:
countDown(5) will print 5,4,3,2,1,
countDown(6) will print 6,5,4,3,2,1
countDown(2) will print 2,1,
You may wish to write some additional code to test your method

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!