OK - I don't know what that code is trying to do, but on line 30 you declare an int called passwordLength, then try to use it in an 'if' expressions as if it was a method... and for method arguments, you're comparing a String called 'length' with two integer literals, 6 and 10.
You can't use an int as a method (the compiler is complaining it can't find a method called passwordLength), and you can't compare a String with a number. The 'if' statement won't do anything even if you fix it, because you've put a semi-colon ; on the end of it... The last error is because you're trying to return 'false' from a method that's declared 'void' - which means it can't return any value.
I suggest you forget about the code, and start with a sheet of paper. Then write down how you would solve this problem step by step in English. Decide what number variables you'll need and what text variables (Strings) you'll need, and how you'd use them to do what is needed. Don't worry about Java until you've worked out exactly how to solve the problem on paper. Once you have a detailed solution written down in English (i.e. pseudo code), and you've stepped through it by hand to make sure it works, then try translating it into Java.
Designing and coding are tricky enough individually - if you try to do both at the same time, you'll only get confused.