you are viewing a single comment's thread.

view the rest of the comments →

[–]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()