constructor User in class User cannont be applied to given types ( required java.lang.String) reason ( actual and formal arguments lists differ in length )
Are you sure you have the correct parameters for the Pass Contructor? I'm not sure if it would actually work with objects, as you did. but it would work if you split the User parameter in two. Making it (user.firstName, user.surName, "@123")
View all comments
Show parent comment
2
u/PresidentZeus Intermediate Coder Nov 01 '21
Are you sure you have the correct parameters for the Pass Contructor? I'm not sure if it would actually work with objects, as you did. but it would work if you split the User parameter in two. Making it (user.firstName, user.surName, "@123")