Skip to content

Instantly share code, notes, and snippets.

View Piyush-rathore's full-sized avatar

Piyush Rathore Piyush-rathore

  • Mathura
View GitHub Profile
class MyThread10 extends Thread
{
public void run() {
for (int i = 0; i < 10; i++) {
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}