Initial Checkin

This commit is contained in:
Joe Tretter
2023-03-02 18:06:10 -06:00
commit c1a00eea1f
19 changed files with 3550 additions and 0 deletions

20
HashMapTest1.java Normal file
View File

@@ -0,0 +1,20 @@
import java.util.*;
public class HashMapTest1 {
public static void main(String []args) {
String string1= "ABFED";
String string2= "AFBHI";
HashMap<Character,Boolean> hm1 = new HashMap<>();
for (char theChar : string1.toCharArray()){
hm1.put(theChar ,false);
}
for (char theChar : string2.toCharArray()){
if (hm1.containsKey(theChar)) {
System.out.print(theChar);
}
}
}
}