Main Class
public class App {
public static void main(String[] args) {}
}
Types
int val = 100;
String str = "Java";
Collections
List<String> list = new ArrayList<>();
Streams
items.stream().filter(x -> x > 0).collect(Collectors.toList());
Conditionals
if (x != null) {
System.out.println(x);
}
Exceptions
try {
// logic
} catch (Exception e) {}