2023-06-04から1日間の記事一覧
public class PointerExample { public static void main(String[] args) { int[] ptrs = {2,1,4,3,0}; String[] objs = {"E","B","A","D","C"}; for(int i = 0; i < ptrs.length; i++) { System.out.print(objs[ptrs[i]]); } } } ポインタのシミュレーショ…
public class PointerExample { public static void main(String[] args) { int[] ptrs = {2,1,4,3,0}; String[] objs = {"E","B","A","D","C"}; for(int i = 0; i < ptrs.length; i++) { System.out.print(objs[ptrs[i]]); } } } ポインタのシミュレーショ…