Java example source code