[quote name='Martyr2' date='16 Mar, 2008 - 01:51 PM' post='326832']
Remember that you defined retail in your main method. In order for calcRetail to see your variable, you have to do one of two things...
1) Pass the retail variable to calcRetail (recommended)
2) Make retail a class level variable (not recommended for this situation).
This is a classic scoping issue. Functions can only see variables passed to it or defined in a more "broader or global" scope.
So it is up to you as to which way you want to do. Since you are not apparently altering the value of the retail, just printing it or going to use it in a calculation, I would definitely just pass the variable to the calcRetail function.
Hope that answers your question.

[/quote]
[newbie quote]
I am so new to this - How do I pass the variable to calcRetail?
I tried this:
CODE
public static void calcRetail(retail)
But, now I get an error message: an identifier expected? This sounds way to easy, but I tend to make them difficult...
[/quote]