Note that you are using
token multiple times in line 22. Are you sure that is correct? It's the same
string that you are passing to the constructor multiple times. I think you meant to read multiple different tokens from the scanner and pass those for the individual parameters for the constructor.
By the way, why is it that Karthik surya posted the original question, and Divya Kotamraju answers? Are you one person with two accounts? (Oh, now you've edited your answer as if you're someone else???)