Translated the 'Suicidal Snail' example to Java

Thanks for all the good work.
Also hope the edgenet project will start soon.