Pergunta de entrevista da empresa The Coca-Cola Company

Write a simple stdin/stdout text parser in Java.