Answer to Question #266963 in Java | JSP | JSF for jaskar

Question #266963

Create a java application to print numbers from 100 to 80 using

Runnable Interface with the sleep count of 1000.


1
Expert's answer
2021-11-16T18:37:07-0500
public class Main implements Runnable {  
 
    public void run() {  
        System.out.println("Running thread");  
    }  
   
    public static void main(String[] args) { 
        int count=1000;
        Main S = new Main();  
        Thread m= new Thread(S);  
        m.start();  
        for(int i=100;i>=80;i--){
        System.out.println(i); 
    }  }
}  

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS