Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail From: Jan Burse Newsgroups: comp.lang.java.programmer Subject: Re: setSize ArrayList, when will it come? Date: Tue, 09 Aug 2011 09:33:07 +0200 Organization: albasani.net Lines: 27 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net +IV6O45GcUOeK63WyaUzls6SFtMWKkqidQmHz6PaPtbUvJ0g0xQu8jcOpyXTFsaBkW1zaMgOHERp1HVnrtZkFg== NNTP-Posting-Date: Tue, 9 Aug 2011 07:33:11 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="o6mKsT5ec1GY4d26NwvtN3xmM57FUVEI/SacDogS4sW7dyP8/byd/ndfmLo/pPshRJEIKsWGnnRTyPhKjkchvkn5S8CVJAWlQTGJbOjTZmWD3HjAsrXwMA552bXvaiSL"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110706 Firefox/5.0 SeaMonkey/2.2 In-Reply-To: Cancel-Lock: sha1:sfmHNEaMESmySkf/YduHKwvdgSg= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:6898 Joshua Cranmer schrieb: > > returns false. And where is the drop-in manipulation, what was the before and after? I understand what you are heading for, the morning star is not evening star, yet they are the same. But typical scenario would be: Before: Object a = new Vector(); Object b = new Vector(); System.out.println(a.getClass() == b.getClass()); returns true. After: Object a = new ArrayList(); Object b = new ArrayList(); System.out.println(a.getClass() == b.getClass()); returns true.