1. Write a Java program that chooses a random integerbetween 0 and five thousand and prints it out.2. Extend that to a main program that chooses a randomnumber, n, between 0 and five thousand, prints the valueof n in a message, then runs Thread.sleep(n) beforeprinting some other message. You will need to change theheader of the main() method to:Computer Science Engineering & Technology Java Programming JAVA CS 1103 PRGet a plagiarism-free order today we guarantee confidentiality and a professional paper and we will meet the deadline.
Do you have a similar question? Our professional writers have done a similar paper in past. Give Us your instructions and wait for a professional assignment!