I want to make an object move to a new height from the user request. My code below does not do that. Where am I going wrong.

thanks in advance.

/* instance variables */
private Aobject object;

public void moveObject ()
{
  int number;
 {
   number = Integer.parseInt(Dialog.request("Enter new               
                   height?")); 
  number = object.getHeight() + number; // what do I 
                         // need to do here
  } 
}

Have I kept this thread organized?

If there's a getHeight() method then there's probably a setHeight(int h) as well.

commented: 1 +1

getters & setters - cheers JamesCherrill

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.