Java配列のインデックスでの計算
そんなことができるんだと驚き。
もしかしたらPHPでもできるのかも…。
試してみよう
サンプル
int[] arrayTest = {"ポリドッグ","天才","かっこいいイケメン"}
System.out.println(arrayTest[3 - 1]);
そんなことができるんだと驚き。
もしかしたらPHPでもできるのかも…。
試してみよう
サンプル
int[] arrayTest = {"ポリドッグ","天才","かっこいいイケメン"}
System.out.println(arrayTest[3 - 1]);
Photo: Jaz. Mine / Unsplash LicensePhoto: Se. Tsuchiya / Unsplash LicensePhoto: Sergio / Unsplash LicensePhoto: Robert Bant / Unsplash LicensePhoto: Zhi Xuan Hew / Unsplash License