\lstset{language=Java,basicstyle=\ttfamily,keywordstyle=\textbf, labelstep=1,labelsep=4pt,labelstyle=\small}