\lstinputlisting[
  language=Java,
  numbers=left, % line numbers
  showstringspaces=false, % spaces in strings
  keywordstyle=\color{blue}, % keyword color
  basicstyle=\ttfamily\small % overall font and size
]{exercises/source-code-listings/Source.java}