Shot ham in Java