Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tower's of Hanoi using Stacks - Java
#12
just make a loop and create a new object for each element of the array

Code:
for(int i =0; i < 3; i++)
{
     t[i] = new Tower();
}
Reply


Messages In This Thread
Tower's of Hanoi using Stacks - Java - by XTOTHEL - 2012-03-10, 07:02 PM
Tower's of Hanoi using Stacks - Java - by XTOTHEL - 2012-03-10, 07:58 PM
Tower's of Hanoi using Stacks - Java - by XTOTHEL - 2012-03-10, 08:02 PM
Tower's of Hanoi using Stacks - Java - by XTOTHEL - 2012-03-10, 08:25 PM
Tower's of Hanoi using Stacks - Java - by MoldyBunny - 2012-03-10, 08:30 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)