Java code for Fumper