r/CodingHelp • • Oct 31 '21

[Java] error in my code

0 Upvotes

11 comments sorted by

View all comments

Show parent comments

1

u/ITZINFINITEOfficial Nov 01 '21

I dont know i got to print the username just not password

2

u/PresidentZeus Intermediate Coder Nov 01 '21

yeah, I realised that. Did it work?

1

u/ITZINFINITEOfficial Nov 01 '21

The username does but I tried everything to get the password part to work and I couldn’t it went from the error string.lang and then can’t be in a static context so i dont know ill ask my teacher about it but I just went ahead and submitted it. Because it’s due at 11:59. That last part I don’t think was mandatory but who knows.

1

u/PresidentZeus Intermediate Coder Nov 01 '21

I'm sorry, I might be misleading you with that answer, as I don't know why you need Pass as its own Class and with a constructor. Your teacher might be the best call.