"Whether it is a case contested by defendants, or a case which proceeds ex parte, the court has to write a judgment which must be