java Producer and Consumer demo