formatted XMAX.java