Applied GitHub Flavored Markdown (GFM)

Code samples are rewritten to use fenced code blocks, explicitly specifying Java as the language.