while(choiceinput == "true")
Strings need to be compared using .equals, not ==. == only works when comparing two string literals or comparing against null (but .equals works in both those cases as well, so there's no reason not to use it). You can't use == when comparing user input.
scan.next() != null;
next never returns null, so this condition will never be true. Go to the full post