public static void mystery(int num)
{
if (num > 0)
{
mystery(num 1);
System.out.print(num + " ");
}
}

mystery(4);