Java template code for paiza.