declare array java inline

Java
String[] strs = {"blah", "hey", "yo"};new String[]{"blah", "hey", "yo"};
Source

Also in Java: