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
15 changes: 0 additions & 15 deletions TecmaxPractise/src/com/tecmax/methodExamples/Harish.java

This file was deleted.

18 changes: 0 additions & 18 deletions TecmaxPractise/src/com/tecmax/methodExamples/Madhuri.java

This file was deleted.

11 changes: 0 additions & 11 deletions TecmaxPractise/src/com/tecmax/methodExamples/StringHandlings.java

This file was deleted.

5 changes: 5 additions & 0 deletions TecmaxPractise/src/com/tecmax/methodExamples/arraylist.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ckage com.tecmax.methodExamples;

public class arraylist {

}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class arraylisttoarray {

public static void main(String[] args) {
// TODO Auto-generated method stub
List<Integer> list=new ArrayList<>();
ArrayList <Integer> list=new ArrayList<>();
list.add(1);
list.add(2);
list.add(3);
Expand Down
5 changes: 0 additions & 5 deletions TecmaxPractise/src/com/tecmax/methodExamples/hello.java

This file was deleted.

22 changes: 22 additions & 0 deletions TecmaxPractise/src/com/tecmax/methodExamples/map.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package com.tecmax.methodExamples;

import java.util.LinkedHashMap;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;

public class map {

public static void main(String[] args) {
LinkedHashMap<String,Integer>set= new LinkedHashMap<String,Integer> ();
set.put("hello",100);
set.put("hi",200);
set.put("hello1",300);
set.put("are",400);
for (Map.Entry m: set.entrySet())
System.out.println(m.getValue()+""+m.getKey());

}

}

25 changes: 25 additions & 0 deletions TecmaxPractise/src/com/tecmax/methodExamples/set.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package com.tecmax.methodExamples;

import java.util.HashSet;
import java.util.Iterator;

public class set {

public static void main(String[] args) {
// TODO Auto-generated method stub
HashSet<String> set= new HashSet<String>();
set.add("hello");
set.add("hi");
set.add("hello1");
set.add("are");
boolean isremoved= set.remove( "hi");
System.out.println("value after removed is"+isremoved);
System.out.println(set.size());
Iterator<String> itr= set.iterator();
while (itr.hasNext()){
System.out.println(itr.next());

}
}

}
35 changes: 0 additions & 35 deletions TecmaxPractise/src/com/tecmax/methodExamples/thread2.java

This file was deleted.