Example java dynamic console