Is there any way in java to return a new array without assigning it first to a variable? Here is an example:
public class Data { private int a; private i
public int[] getData() { return new int[]{a,b,c,d}; }