Why java allows private String[][] var[]

后端 未结 5 2082
终归单人心
终归单人心 2021-01-20 03:21
private String[][] var[]

This code compiles. But shouldn\'t they make the array on type or variable?

5条回答
  •  隐瞒了意图╮
    2021-01-20 04:04

    Oscar's answer is pretty good. If one were to read String[][] var[] in English, one would say "var is an array of two-dimensional String arrays" thus "var is a three-dimensional String array"

提交回复
热议问题