posted 8 years ago
Hi I am sorry that I am asking so many questions but I need help with something. I need to know how to use a variable inside the main method inside another method. Here is my code
If I declare the variable outside the main method it will compile but it won't do anything when I run the code. Here are the errors I am getting in this version
" [line: 14]
Error: cannot find symbol
symbol: variable password
location: class passwordCodeDriver1
[line: 19]
Error: cannot find symbol
symbol: variable callMethods
location: class passwordCodeDriver1"
also I am not sure if this is required to fix this error but here is the other code involved with this project
So yeah if someone can show me how to use a method in the main method I would be very grateful. Thanks in advanced.