Note taking - Java