Reformatted code in NetBeans.