All pastes #475549 Raw Edit

Miscellany

public java v1 · immutable
·published 2007-05-07 14:56 UTC
rendered paste body
import java.util.*;public class SecondTester implements Runnable {      private Timer tm;      private int counter;      private TestVehicle[][] bridgeArray;    private Timer secondTimer;    private int secondCounter;    private boolean switcher = false;    public boolean simRunner = true;    private int count = 0;        public SecondTester()    {        secondTimer = new Timer();        bridgeArray = new TestVehicle[9][26];            }        public void run()     {          secondTimer.schedule(new secondTimer(), 0, 500);                    }    class secondTimer extends TimerTask    {        private int pop = 0;        private ComboTester comboT = new ComboTester();        private SecondTester sT = new SecondTester();                public void run()        {        System.out.println("Hello from another thread!");                if (pop == 0)        {            comboT.populator();            System.out.println(comboT.getTestType(0,3));            pop++;        }                 for (int i=0; i< 100; i++)                {                    System.out.println();                }        comboT.printCars();        System.out.println("This");        System.out.println("is");        System.out.println("flickering");        System.out.println("really");        System.out.println("badly.");                  }}}