Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Java_Practice/src/main/java/org/example/In_Class/Main.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package org.example.In_Class;

public class Main {
public static void main(String[] args) {
MyRunnable myRunnable = new MyRunnable();
myRunnable.run();

}
}
11 changes: 11 additions & 0 deletions Java_Practice/src/main/java/org/example/In_Class/MyRunnable.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package org.example.In_Class;

public class MyRunnable implements Runnable{
public void run(){
System.out.println(Thread.currentThread().getName());
System.out.println(Thread.currentThread().getName());
System.out.println(Thread.currentThread().getName());
System.out.println(Thread.currentThread().getName());
System.out.println(Thread.currentThread().getName());
}
}
12 changes: 12 additions & 0 deletions Java_Practice/src/main/java/org/example/In_Class/MyThread.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package org.example.In_Class;

public class MyThread extends Thread{
@Override
public void run(){
System.out.println(Thread.currentThread().getName());
System.out.println(Thread.currentThread().getName());
System.out.println(Thread.currentThread().getName());
System.out.println(Thread.currentThread().getName());
System.out.println(Thread.currentThread().getName());
}
}
Loading