Java threads bug

My problem is in a main method in which I have a do - while loop. The loop starts with a menu with 8 options is followed by a switch condition depending on which option the user has chosen. It works just fine for all options except 2 of them, in which I have used threads. This is my code for one of the options :

case 5:

MyThread t1 = new MyThread("Thread", (ArrayList)someCatalogue.getTheArrayList());



The thread simply takes a string and an ArrayList as parameters.

After executing this, I expect the program to display...

Read More »

By: StackOverFlow - Thursday, 8 November

Related Posts