it returns the sum of all numbers between 1 and num (100 in this case) which is 5050. xyz calls itself recursively until the argument provided is 1 in which case the recursion is stopped. Each iteration is called with an argument of num-1, i.e. the first time with 100, the second time with 99, the third time with 98,... the num time with 1.
HIH
------------------
Valentin Crettaz
Sun Certified Programmer for
Java 2 Platform