Aaron Rudd wrote:I am trying to get the input of the sales persons name to print into where I ask for the annual salary. From there I am working to then have the system ask for the second sales person salary.
One way to do this is to declare
String[] name outside of any methods, like you've done with several other variables. This would made
name visible in all methods -- maybe not what you want.
Another way is to return the
name array from the
salesPerson method and pass it into the
getSales method as a parameter.