This commit is contained in:
Misa
2026-02-15 20:45:00 +05:30
commit a6112cfc98
60 changed files with 671 additions and 0 deletions

16
ThreadExample1.java Normal file
View File

@@ -0,0 +1,16 @@
public class ThreadExample1 extends Thread
{
public void run()
{
int a = 22;
int b = 26;
int result = a+b;
System.out.println("Thread started running..");
System.out.println("Sum of two numbers is: " +result);
}
public static void main(String[] args)
{
ThreadExample1 t1 = new ThreadExample1();
t1.start();
}
}