Methods do not HOLD values.
Use the Point class if you want something to hold the values of x & y
Type: Posts; User: Norm
Methods do not HOLD values.
Use the Point class if you want something to hold the values of x & y
Please explain what you want the getCenterPoint method to do. What parameters does it need, what values will it compute and what will it return.
The method only returns one int, not two ints. It either returns x or it returns y, not both.
Can you describe the steps the method should take to compute values and what value(s) it should return?...
The return x1 inside the loop will end the loop immediately.
The getCenterPoint() method returns an int value. Does a point have two values: x & y How is one int value a point?
Please describe...
What code are you having problems with? Please post the code and your questions.