Java Recursion (attempt)

My attempt at recursion in java.