Java monster stream solution
java\nclass Solution {\n    public List<List<String>> displayTable(List<List<String>> orders) {\n        var food = orders.stream()\n            .map(order -> o
```java\nclass Solution {\n    public List<List<String>> displayTable(List<List<String>> orders) {\n        var food = orders.stream()\n            .map(order -> order.get(2))\n            .distinct()\n            .sorted()\n            .collect(toList());\n        return Stream.concat(\n            Stream.of(Stream.concat(Stream.of("Table"), food.stream()).collect(toList())), \n            orders.stream()\n                .collect(groupingBy(order -> order.get(1),\n                    groupingBy(order -> order.get(2), \n                        collectingAndThen(counting(), Long::intValue))))\n                .entrySet().stream()\n                .sorted(comparingInt(e -> Integer.parseInt(e.getKey())))\n                .map(e -> Stream.concat(Stream.of(e.getKey()), \n                    food.stream()\n                        .map(item -> e.getValue().getOrDefault(item, 0))\n                        .map(Object::toString))\n                        .collect(toList())))\n            .collect(toList());\n    }\n}\n```
['Java']