I also don't like
while (true) ... I would suggest a
do loop, reading while the input doesn't equal “Quit” or something like that.
I suspect you are falling into a little‑known pitfall with
nextLine(). You have doubtless been told it reads the next line, and that is exactly what it doesn't do. Look in
this old post of mine. When the loop runs the second time, you are using
nextLine() after
nextInt(), and the old post explains what can go wrong.
Documentation link.