Pregunta de entrevista de Morgan Stanley

How would you implement Auto Complete for a text field in java?