public static void javaOutputPrintStream(Cons exps, boolean nativestreamP) {
    { Stella_Object stream = exps.value;
      boolean foundeolP = false;
      boolean embeddedeolP = false;
      Cons printitems = Stella.NIL;

      { Stella_Object i = null;
        Cons iter000 = exps.rest;

        loop000 : for (;!(iter000 == Stella.NIL); iter000 = iter000.rest) {
          i = iter000.value;
          if (foundeolP) {
            embeddedeolP = true;
            break loop000;
          }
          if (Stella_Object.javaEndOfLineTokenP(i)) {
            foundeolP = true;
          }
        }
      }
      if (embeddedeolP) {
        ((OutputStream)(Stella.$CURRENT_STREAM$.get())).nativeStream.println("{");
        Stella.javaBumpIndent();
      }
      { ConsIterator it = exps.rest.allocateIterator();

        while (it.nextP()) {
          { Stella_Object item = it.value;

            if (Stella_Object.javaEndOfLineTokenP(item)) {
              {
                if (embeddedeolP) {
                  Stella.javaIndent();
                }
                Stella_Object.javaHelpOutputPrintStream(stream, Cons.javaReverseAndConsolidateStrings(printitems), nativestreamP, true);
                if (embeddedeolP) {
                  ((OutputStream)(Stella.$CURRENT_STREAM$.get())).nativeStream.println(";");
                }
                printitems = Stella.NIL;
              }
            }
            else {
              printitems = Cons.cons(item, printitems);
            }
          }
        }
      }
      if (!(printitems == Stella.NIL)) {
        if (embeddedeolP) {
          Stella.javaIndent();
        }
        Stella_Object.javaHelpOutputPrintStream(stream, Cons.javaReverseAndConsolidateStrings(printitems), nativestreamP, false);
        if (embeddedeolP) {
          ((OutputStream)(Stella.$CURRENT_STREAM$.get())).nativeStream.println(";");
        }
      }
      if (embeddedeolP) {
        Stella.javaUnbumpIndent();
        Stella.javaIndent();
        ((OutputStream)(Stella.$CURRENT_STREAM$.get())).nativeStream.println("}");
      }
    }
  }