diff --git a/RunnableTest.class b/RunnableTest.class new file mode 100644 index 0000000..064b959 Binary files /dev/null and b/RunnableTest.class differ diff --git a/RunnableTest.java b/RunnableTest.java new file mode 100644 index 0000000..55c09ff --- /dev/null +++ b/RunnableTest.java @@ -0,0 +1,16 @@ +class x implements Runnable { + public void run(){ + for(int i=0; i<=5; i++){ + System.out.println("The Thread x is: "+i); + } + System.err.println("End of the Thread x"); + } +} +class RunnableTest { + public static void main(String[] args) { + x r = new x(); + Thread threadx = new Thread(r); + threadx.start(); + System.out.println("The end of the main thread"); + } +} \ No newline at end of file diff --git a/src/2.png b/src/2A.png similarity index 100% rename from src/2.png rename to src/2A.png diff --git a/src/2B.png b/src/2B.png new file mode 100644 index 0000000..70c2695 Binary files /dev/null and b/src/2B.png differ diff --git a/x.class b/x.class new file mode 100644 index 0000000..48a9529 Binary files /dev/null and b/x.class differ