Welcome to the forum! Thanks for taking the time to learn how to post code correctly. If you haven't already, please read this topic
to learn other useful info for new members.
I don't understand the problem. Show a sample run (copy it from the console and paste into a post) that has the undesired blank line.
Ooops. I see that now in Post #1. Let me play with it.
I think it's being caused by this line:
category[itemCount] = categoryTypes[input.nextInt()-1];
Why are you getting more input? Did you mean instead:
category[itemCount] = categoryTypes[option-1];