看板java
标 题Re: [请益] 物件的动态阵列要怎麽写
发信站月光海洋BBS (Sat Nov 4 19:28:08 2006)
转信站ptt!ctu-reader!news.nctu!mobbs
我没记错的话 用法是一样的啊...
记得要做初始化就好
※ [email protected] (飘落的樱花) wrote:
> 一些原生资料型态可以作动态阵列
> 但是物件的用法好像不同
> 像int [][] a=new int[5][];
> a[0]=new int[7];
> . .
> . .
> 假设我今天改用一个类别class MyInt{int a;}
> 请问我要怎麽做到如上的多维动态阵列~"~
--
◣ ███ ███ ☆ Post by Pistachi
◢█ ▉▉█ █▇█ ★ From 220-134-160-26.HINET-IP.hinet.net
◥█◤ ﹉ ﹍ ﹋ 月光海洋BBS 《mobbs.stut.edu.tw》 163.26.220.130