nick sutton wrote:the letters values are saved. for instance if you typed in 4 sets of 90's the value of A would be 4. at the end of the program it should convert that value into those astericks. the return is an asterick?
It could be. But not just an asterisk, right? The 4 asterisks in a row.
Let's look at where you call the method:
Here you are looking to add the value of convert(A) to the Strings "\nA'1" and "\n...". This suggests that indeed, you do expect to return those asterisks from the method. But as what?
But let's also look at the method you created:
In this code, you just output the asterisks, you don't return them as a value. This is fine (as long as you define the proper return type) but it isn't really compatible with how you use the method. You need to ask yourself:
"Should I (a)return a value like I expect to in when I call the convert() method, or do I (b)not return a value, and simply display asterisks like the method is currently coded?"
Either way, you need to modify your code to either (a) return something, or (b) return nothing and change how the method is called so the caller doesn't expect something returned.
You should read up on methods a bit - a review of your textbook's coverage of methods might help as well.