Assignment 3: GetToken() - Java