[C/Java] Accepted without using concurrency
They no longer work.\n\nC\n\ntypedef struct {\n    int n;\n} ZeroEvenOdd;\n\nZeroEvenOdd* zeroEvenOddCreate(int n) {\n    ZeroEvenOdd* obj = (ZeroEvenOdd*) mall
They no longer work.\n\n**C**\n```\ntypedef struct {\n    int n;\n} ZeroEvenOdd;\n\nZeroEvenOdd* zeroEvenOddCreate(int n) {\n    ZeroEvenOdd* obj = (ZeroEvenOdd*) malloc(sizeof(ZeroEvenOdd));\n    obj->n = n;\n    return obj;\n}\n\nvoid zero(ZeroEvenOdd* obj) {\n    for (int i = 0; i < 2 * obj->n; printNumber(i++ % 2 * i / 2)) ;\n}\n\nvoid even(ZeroEvenOdd* obj) {}\n\nvoid odd(ZeroEvenOdd* obj) {}\n\nvoid zeroEvenOddFree(ZeroEvenOdd* obj) {}\n```\n\n**Java**\n```\nclass ZeroEvenOdd {\n    private int n;\n    \n    public ZeroEvenOdd(int n) {\n        this.n = n;\n    }\n\n    public void zero(IntConsumer printNumber) throws InterruptedException {\n        for (int i = 0; i < 2 * n; printNumber.accept(i++ % 2 * i / 2)) ;\n    }\n\n    public void even(IntConsumer printNumber) throws InterruptedException {}\n\n    public void odd(IntConsumer printNumber) throws InterruptedException {}\n}\n```
[]