Strange expression I myself may have written: Java variable assignment syntax : Somewhere in my code today, I found that I had written the following line

    JsonArray environmentJsonArray = new JsonArray(), playerJsonArray, teamJsonArray;

I am at a complete loss in understanding how this was even working. The basic question is this: What are the two variables on my RHS doing? I checked if I had declared them before. But I did not. The compiler still does not complain apparently indicating that the playerJsonArray and the teamJsonArray was being taken as fresh declarations. But then the declared variables are always on the LHS. Isn't that so? Has something changed in Java's basic syntax? Iam trying to go thru the specs to get to the bottom but just in case anyone has a quicker understanding please....

 