Skip to content

Instantly share code, notes, and snippets.

@rava-dosa
Created December 7, 2018 06:38
Show Gist options
  • Save rava-dosa/57dd743f414b3db5f06d1626f853c907 to your computer and use it in GitHub Desktop.
Save rava-dosa/57dd743f414b3db5f06d1626f853c907 to your computer and use it in GitHub Desktop.
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