String[][] stringArray = new string[2][2],第二个数组你没有设置长度,默认0
你定义的是二维数组,数组也需要初始化哦
String[][] stringArrays=new String[2][2];空指针异常,你二维数组没有初始化