Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.HashMap;
- public class HashMapAwesomeness {
- public static void main(String[] args) {
- HashMap<String, String> fun=new HashMap<String , String>();
- fun.put("bobbyJoe1996","FluffyP0nies!");
- fun.put("helloKittyFan210" , "password123");
- System.out.println(fun.containsValue("1234ivana"));
- System.out.println(fun.containsKey("helloKittyFan210"));
- System.out.println(fun.size());
- System.out.println(fun.replace("bobbyJoe1996","onaka"));
- System.out.println(fun);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment