Is there a faster way to instantiate objects in Java where one does not have to retype the class? For example, look at this tome of an instantiation:
HashMap<Integer, ArrayList<ActivityRecord>> days = new HashMap<Integer, ArrayList<ActivityRecord>>();
I'd love a shorthand that was along the lines of:
HashMap<Integer, ArrayList<ActivityRecord>> days = new();
Alternately, I'd also be happy with an Eclipse shortcut that auto-completed the instantiation to use the no-parameter constructor.