Your getSolution( ... ) method is static but it tries to access a non-static member variable result; there is no object so there is no member variable; for a quick hack make the result variable static. Your local variable result have all gone out of scope so they don't exist anymore when your method wants to return.
Sorry, yeah, I have absolutely no idea where the frig that's coming from either--when I run it in dr java (which I have to use), it literally takes A, B, and C, then prints the word 'error' and asks me if I want to do another triangle. The word error is not in my code anywhere so I haven't the foggiest why this is occurring.
Was the compiler happy when you compiled it?
yes, the compiler was satisfied. I didn't have any problems at all until I tried to run the damn thing.
I would do that but it's against the terms for the project (i.e. we're not allowed to do it and we get points taken off if the prof sees evidence of it having happened)
edit: tried it. Still just prints 'error'. Think it might be something with my compiler actually...I'll try it on a friend's PC, if it works I'll just turn it in.
I can't thank you enough. Turns out I'm getting a runtime error. I just can't figure out where it's coming from or why.
Ah. No stack trace, just randomly the word 'error', and no idea why since it's not in my code. Guess it's not a runtime error then. >.>
I found the issue.
The issue was that I tried to do this at 5:30 AM after not sleeping for 30 hours.
There were misplaced brackets. *******. Everywhere.
I scrapped the program and started again. Finished it in 10 minutes. Everything works fine now and I feel like a total idiot.
Please watch your language. High school kids read and post here. Post edited.
Sorry, didn't know :) I'm just glad my problem is resolved. It was frustrating the poop out of me because I've written far more complicated things--just not in java. it felt like something that should not be defeating me. :P