
Write a class resourceThread which has a method run which calls display method of resource class. Resource class has synchronized display method which prints the array string. Take a string in a variable and convert that string into array of characters using toCharArray() method of string class . Make a ref of thread class and pass the reference of resource class into object of resourceThread class and display the string.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.