java中?????

看图就arr[j+1]=temp;就像这种 【】里面是啥呀,怎么称呼,叫值吗

叫数组下标。追问

只有数组才能用[ ]吗?书上都没介绍这些符号咋用,老师也没说,还有{ },

温馨提示:内容为网友见解,仅供参考
第1个回答  2018-01-25

下标、

public class Test {

    public static void main(String[] args) {

        int[] arrayInt = new int[10];

        for (int i = 0; i < arrayInt.length; i++) {

            // 把i(=后面的)赋给arrayInt的地第i([]里面的) + 1个元素
            arrayInt[i] = i;
            System.out.println(arrayInt[i]);
        }
    }
}

本回答被网友采纳
相似回答