Let me ask it another way. Where do you call the method myVolume() that computes/returns the volume based on radius and height?
Type: Posts; User: GregBrannon
Let me ask it another way. Where do you call the method myVolume() that computes/returns the volume based on radius and height?
Where do you compute the volume using radius and height?
The variables radiusStr and heightStr are defined as null and then parsed to obtain radius and height. You have the steps out of order. Reorder them so that you're not parsing nulls.
Define "doesn't work." Are you getting errors, incorrect results? If so, post the specifics (error messages, sample outputs, desired outputs, etc.) and ask specific questions.