Java tutorial
//package com.java2s; public class Main { /** * Computes Mystic Armor given an attribute value * @param indice the attribute value * @return Wound Threshold for the given attribute value */ public static int computeMysticArmor(final int indice) { return (int) Math.ceil(Math.max(indice - 10, 0) / 3.0); } }