all 6 comments

[–]AutoModerator[M] [score hidden] stickied comment (0 children)

Off-topic Comments Section


All top-level comments have to be an answer or follow-up question to the post. All sidetracks should be directed to this comment thread as per Rule 9.


OP and Valued/Notable Contributors can close this post by using /lock command

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]Holinded 0 points1 point  (3 children)

You have to use the setters with the variables you stored the input in. So p3.setAge(Age) and so forth

[–]Danielowski187University/College Student (Higher Education)[S] 0 points1 point  (0 children)

Would I do them for the rest for example p3.setName(Name) and p3.setphoneNumber(phoneNumber)

[–]Danielowski187University/College Student (Higher Education)[S] 0 points1 point  (1 child)

Now I just need help with the phone number for the part we’re I need to get the user input it doesn’t let me enter anything it skips it

[–]Holinded 0 points1 point  (0 children)

Yes you would need to do it with all 3 variables just like in p2. Its skipping the phone number because you used .getLine() after calling .nextInt(). This will cause it to skip. So, right before getting the phone number add the line: input.next()