public class order { int m_type; float m_param; } public class exchange { static private order m_fifo[] = null; // Put an order into the fifo synchronized void put(order a) { m_fifo[sizeof(m_fifo)] = a; } // Get an order from the fifo synchronized order get() { if ( sizeof(m_fifo) == 0 ) return null; order a = m_fifo[0]; order copy[] = null; for ( int i=1 ; i