Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main {
- public static void countDown(int n) {
- if (n == 0) {
- System.out.println("Blastoff!");
- return;
- }
- System.out.println(n);
- countDown(n - 1);
- }
- public static void main(String[] args) {
- countDown(6);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment