ART MOMENT:
![]() |
A Game of Tric-Trac
|
By the beginning of today's class you should
HAVE READ:
KNOW:
BE ABLE TO:
DAILY QUESTION:
What does the following code do?
/** * Neemt een geheel en output een Ster voor elke vijf of nul */ public static void neemt (int n) { if (n > 0) { neemt (n/10); if (n %5 == 0) { System.out.print ('*'); } else { System.out.print (n % 10); } } } |
Sample Exam question(s)
/** * Recursive implementation */ public boolean find (int i) { // base case(s) if (value == i) { return true; } // recurse onwards! return next.find(i); } |
/** * Recursive implementation to print to the screen just the * vowels of the String. */ public static void printVowels (String s) { // base case(s) // recurse onwards! } |