java queue source code example