Need some help with java
So, I've taken only a cursory look at the code and here's what I think might help:
You've declared getSaleOutcome inside of your makeOffer method -- this doesn't really work as you intended. Rather, declare getSaleOutcome elsewhere (somewhere inside of your PropertySale class but outside of any other method) and then call the method inside of your makeOffer method. Something like this:
public class PropertySale{
...
some variables and methods
...
getSaleOutcome(){
print stuff here
}
... more methods and stuff ...
makeOffer(){
...your make offer definition is here...
at the end of your method, you call getSaleOutcome()
}
}
I really hope this helps and I wish you the best of luck; not everyone has the drive to learn to code on his own.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now