Why exactly are you using theAnswer in the main? Think about what the input is for your area method. When you tested for your other methods, how did you test for them? Did you try printing out...
Type: Posts; User: Actinistia
Why exactly are you using theAnswer in the main? Think about what the input is for your area method. When you tested for your other methods, how did you test for them? Did you try printing out...
I'd like to recommend looking into scope and visibility. I think you should try looking at this website and hopefully it'll solve your problem. Scope and Visibility in Java
*edit* Well I guess I...