A basic predictive text system built in Java