Visual Studio Code
Format:
$ javac -d . [FileName.java]
$ java [Package].[ClassName]
Compile & Execute:
$ javac -d . HelloWorld.java
$ java hello.HelloWorld
public static boolean containsName(ArrayList<Cat> list, String name)
{
return list.stream().filter(o -> o.getName().equals(name)).findFirst().isPresent();
}