正在加载图片...
Arrays in Java:declaration ●Declaration Oint]arr, OPerson[]persons; OAlso support:int arr[];Person persons[] (confusing,should be avoided) ●Creation Oint[]arr new int[1024]; ○int[00arr={{1,2,3},{4,5,6}}; OPerson[]persons new Person[50];Arrays in Java: declaration lDeclaration ¡int[] arr; ¡Person[] persons; ¡Also support: int arr[]; Person persons[]; (confusing, should be avoided) lCreation ¡int[] arr = new int[1024]; ¡int [][] arr = { {1,2,3}, {4,5,6} }; ¡Person[] persons = new Person[50];
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有