GMIT course java assignment. (Array based text processor)