Anyone can tell me how to do this question:
A program that creates an array of 5 student names and an array of 5 student Ids. You can choose to input the values or directly assign them. The program should then create two threads. The first created thread executes a loop that displays all the names, while the second thread should execute a loop displaying the ids. In the mean time the parent thread should sleep for 5 seconds, then display “Parent Thread Exiting” and then exits.