Created
December 7, 2018 06:38
-
-
Save rava-dosa/57dd743f414b3db5f06d1626f853c907 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Arrays; | |
public class MyClass { | |
public static void main(String args[]) { | |
int x=10; | |
int y=25; | |
int z=x+y; | |
HashMap<String, List<String>> templateHashmap = new HashMap<>(); | |
List<String> a = Arrays.asList("sup1", "sup2", "sup3"); | |
templateHashmap.put("ravi",a); | |
templateHashmap.put("kavi",a); | |
System.out.println(templateHashmap.keySet()); | |
System.out.println("Sum of x+y = " + z); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment