+ 10
The method is returning password, which is char[ ]. But method return type is char. That's the problem.
+ 8
Change the return type of genratePswd to char[ ] from char, it should work if it doesn't contain any other bugs đ
Edit: code is attached
https://code.sololearn.com/cUcc9BpfnSeK/?ref=app
+ 5
Please link your code in the question, people cannot help you if they can't see where the problem is, and they need to see your code to do that :)