When you refactor code, do you need to modify your unit tests or can you continue to use the existing tests? Yes / No
Can you use a switch
statement for string values?
Yes / No
Write a while
statement that produces the same
output as the following for statement for any integer value of n
:
for (int i = 0; i < n; i++) { System.out.println(i); }
Write a recursive algorithm for computing the summation function described in lab exercise 5b.5. You may assume that your value of n is non-negative.