Showing posts with label Map. Show all posts
Showing posts with label Map. Show all posts

Monday, September 21, 2015

Walk Maps

0.6 Miles

1.14 Miles

2.2 Miles

3.34 Miles

Friday, July 6, 2012

How to Initialise a static Map in Java

private static final Map<String, String> channelTypes =
    new HashMap<String, String>();
static {
        channelTypes.put("I", "Incremental");
        channelTypes.put("N", "Instrument");
        channelTypes.put("S", "Snapshot");
}

private static final Map<String, String> channelTypes =
     new HashMap<String, String>() {
     {
                    put("I", "Incremental");
                    put("N", "Instrument");
                    put("S", "Snapshot");
      }
};