Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.HashMap;
import java.util.Map;

public class Main {
    public static void main(String args[]) {
        Map<Integer, String> mils = new HashMap<>();
        mils.put(1, "foo");
        mils.put(2, "bar");
        System.out.println("mils:\t" + mils);
        mils.put(1, "bar");
        System.out.println("mils:\t" + mils);
    }
}