diff --git a/Android java/SoftGen/bin/Abstraction/AbstractAnimal.class b/Android java/SoftGen/bin/Abstraction/AbstractAnimal.class index c2d2e86..ef0c16c 100644 Binary files a/Android java/SoftGen/bin/Abstraction/AbstractAnimal.class and b/Android java/SoftGen/bin/Abstraction/AbstractAnimal.class differ diff --git a/TecmaxPractise/src/com/tecmax/methodExamples/arraylist.java b/TecmaxPractise/src/com/tecmax/methodExamples/hello.java similarity index 60% rename from TecmaxPractise/src/com/tecmax/methodExamples/arraylist.java rename to TecmaxPractise/src/com/tecmax/methodExamples/hello.java index 0b0acd7..8817eee 100644 --- a/TecmaxPractise/src/com/tecmax/methodExamples/arraylist.java +++ b/TecmaxPractise/src/com/tecmax/methodExamples/hello.java @@ -1,5 +1,5 @@ package com.tecmax.methodExamples; -public class arraylist { +public class hello { } diff --git a/TecmaxPractise/src/com/tecmax/methodExamples/swapingsring.java b/TecmaxPractise/src/com/tecmax/methodExamples/swapingsring.java deleted file mode 100644 index 1f6644a..0000000 --- a/TecmaxPractise/src/com/tecmax/methodExamples/swapingsring.java +++ /dev/null @@ -1,6 +0,0 @@ -package com.tecmax.methodExamples; - -public class swapingsring { - pub - -} diff --git a/TecmaxPractise/src/com/tecmax/methodExamples/swapstr.java b/TecmaxPractise/src/com/tecmax/methodExamples/swapstr.java deleted file mode 100644 index f769787..0000000 --- a/TecmaxPractise/src/com/tecmax/methodExamples/swapstr.java +++ /dev/null @@ -1,19 +0,0 @@ -package com.tecmax.methodExamples; - -public class swapstr { - - public static void main(String[] args) { - // TODO Auto-generated method stub - String a="java"; - String b="programming"; - - a.concat(b); - b=a.substring(0, (a.length()-b.length())); - a=a.substring(b.length()); - System.out.println("value of a: "+a); - System.out.println("value of b: "+b); - - - } - -} diff --git a/TecmaxPractise/src/com/tecmax/methodExamples/swapstring.java b/TecmaxPractise/src/com/tecmax/methodExamples/swapstring.java deleted file mode 100644 index 0a7b029..0000000 --- a/TecmaxPractise/src/com/tecmax/methodExamples/swapstring.java +++ /dev/null @@ -1,5 +0,0 @@ -package com.tecmax.methodExamples; - -public class swapstring { - -} diff --git a/TecmaxPractise/src/com/tecmax/methodExamples/thread2.java b/TecmaxPractise/src/com/tecmax/methodExamples/thread2.java new file mode 100644 index 0000000..b007b81 --- /dev/null +++ b/TecmaxPractise/src/com/tecmax/methodExamples/thread2.java @@ -0,0 +1,35 @@ +package com.tecmax.methodExamples; + +public class thread2 extends Thread { + + public void run() + { + try + { + + System.out.println ("Thread " + + Thread.currentThread().getId() + + " is running"); + + } + catch (Exception e) + { + + System.out.println ("Exception is caught"); + } + } +} + + +public class thread3 +{ + public static void main(String[] args) + { + int n =8; + for (int i=0; i<8; i++) + { + thread2 object = new thread2(); + object.start(); + } + } +}