Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
int[] x = {1, 2, 3, 4}; System.out.println(x[x[3-2]]);
誰かが何が起こっているのか説明してもらえますか? 教科書やオンラインのどこにも説明が見つからない
開始 3-2 = 1
したがって、x[1] = 2 (ゼロベースのインデックス) は、x[2] が 3 であることを意味します。
そう.. x[x[3-2]] = x[x[1]] = x[2] = 3