UNIX Socket FAQ

A forum for questions and answers about network programming on Linux and all other Unix-like systems

You are not logged in.

  • Index
  • » Java
  • » Urgent Help needed please

#1 2004-04-03 07:35 PM

Liberated Soul
Guest

Re: Urgent Help needed please

#2 2004-04-03 09:23 PM

RobSeace
Administrator
From: Boston, MA
Registered: 2002-06-12
Posts: 3,847
Website

Re: Urgent Help needed please

And, how much are you willing to pay us to do your homework
for you, exactly? ;-)

Offline

#3 2004-04-05 07:18 PM

HectorLasso
Administrator
From: Colombia
Registered: 2002-06-12
Posts: 353

Re: Urgent Help needed please

public void foo (stack s1, stack s2, int num, int x){ 
   s2.clear(); 
   for (int i = 0; i < num - 1; i++) 
      s2.push(s1.pop())) 
   int temp = s1.pop(); 
   s1.push(x); 
   while (!(s2.empty())) 
      s1.push(s2.pop()); 
}

Offline

  • Index
  • » Java
  • » Urgent Help needed please

Board footer

Powered by FluxBB