I don’t think this article can be completely correct more so the comments being thrown around. I’m currently in college as a Computer Science major and I had to learn recursion way back in beginning programming class. It was just the hey this is what it is and how you can do it. Since I’ve taken the more advanced classes now. We have to use it in some of the solutions such as Traversing Tree’s or graphs usually. I also learned Hexadecimal and Binary conversions and the operations on them.
Also I would say that my University not the best at all as far University go. It’s one of the cheapest in the state.
Java -
Console run by -
javac FizzBuzz.java
java FizzBuzz
public class FizzBuzz
{
public FizzBuzz()
{
}
public static void main(String[] args)
{
for(int i = 1; i<= 100; i++)
{
if( (i % 3) == 0 && (i % 5) == 0 )
System.out.println(“FizzBuzz”);
else if(i % 5 == 0)
System.out.println(“Buzz”);
else if(i % 3 == 0)
System.out.println(“Fizz”);
else
System.out.println(i);
}
}
}