I can see in couple of examples on the web a new syntax for me, here's an example:
Accumulator<Integer> sum = new Accumulator<Integer>(){
public Integer accumulate(Integer t1, Integer t2) {
return t1+t2;
}
};
In general, what does that mean when one writes { a method }
after making an instance of a class? Is it some kind of old syntax for something?
Thanks