Vào 16:31 Ngày 23 tháng 9 năm 2010, Huan Truong <[email protected]> đã viết:
>
> Java khong co khai niem pointer.
>
> public class FanboySoRandomLOL {
> public static void main(String[] args) {
> Fanboy[] myBoys = { new ChemGioFanboy("ChemGio1"), new
> BugFanboy("Bug1"), new ChemGioFanboy("ChemGio2"), new
> BugFanboy("Bug2"), new ChemGioFanboy("ChemGio3") };
> Fanboy currentBoy;
> Random select = new Random();
> for (int i = 0; i < 50; i++) {
> currentBoy = myBoys[select.nextInt(myBoys.length)];
> System.out.println("\nNguoi se post tiep theo: " + currentBoy);
> currentBoy.sendToList();
> }
> }
> }
>
[off topic 1 tị]: Chuyện của Huan hơi bị hay. Nhưng mà để 50 thì khiêm tốn
quá. International phải nhiều hơn mới rôm rả. :D
_______________________________________________
POST RULES : http://wiki.hanoilug.org/hanoilug:mailing_list_guidelines
_______________________________________________
HanoiLUG mailing lists: http://lists.hanoilug.org/
HanoiLUG wiki: http://wiki.hanoilug.org/
HanoiLUG blog: http://blog.hanoilug.org/