Skip to content

Instantly share code, notes, and snippets.

@jonasabreu
Created November 1, 2013 17:25
Show Gist options
  • Save jonasabreu/7268792 to your computer and use it in GitHub Desktop.
Save jonasabreu/7268792 to your computer and use it in GitHub Desktop.
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
public class InferenciaDeTiposEmJava {
// Inferência meia boca
List<Map<String, Integer>> a = new ArrayList<>();
public static void main(final String[] args) {
// Inferência super legal que não dá para usar....
new Object() {
void fazAlgo() {
}
}.fazAlgo();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment