1

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?

Edited by mike_2000_17: Fixed formatting

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by ttboy04
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.