The conversation between human and AI assistant.
What are some cool Java tricks?
That's interesting. Do you have any more examples?
Sure! Another one is using the `var` keyword to declare variables without explicitly stating the type. For example, `var myList = new ArrayList<>()` will create an ArrayList of whatever type you add to it.