public boolean checkEntity(Entity entity, String fileString, boolean verbose) { boolean retVal = false;  TestEntity testEntity = null; if (entity instanceof Mech) testEntity = new TestMech((Mech)entity, mechOption, fileString); else if (entity instanceof Tank) testEntity = new TestTank((Tank)entity, tankOption, fileString); else { System.err.println("UnknownType: "+entity.getDisplayName()); System.err.println("Found in: "+fileString); return false; }  if (verbose) { System.out.print(testEntity.printEntity()); } else { StringBuffer buff = new StringBuffer(); if (testEntity.correctEntity(buff)) { retVal = true; } else { System.out.println(testEntity.getName()); System.out.println("Found in: "+testEntity.fileString); System.out.print(buff); } }  return retVal;
public boolean checkEntity(Entity entity, String fileString, boolean verbose) { return checkEntity(entity, fileString, verbose, false);
    public boolean checkEntity(Entity entity, String fileString, boolean verbose)    {        boolean retVal = false;        TestEntity testEntity = null;        if (entity instanceof Mech)            testEntity = new TestMech((Mech)entity, mechOption, fileString);        else if (entity instanceof Tank)            testEntity = new TestTank((Tank)entity, tankOption, fileString);        else        {            System.err.println("UnknownType: "+entity.getDisplayName());            System.err.println("Found in: "+fileString);            return false;        }        if (verbose)        {            System.out.print(testEntity.printEntity());        }        else        {            StringBuffer buff = new StringBuffer();            if (testEntity.correctEntity(buff))            {                retVal = true;            }            else            {                System.out.println(testEntity.getName());                System.out.println("Found in: "+testEntity.fileString);                System.out.print(buff);            }        }        return retVal;    }