Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Roedy Green Newsgroups: comp.lang.java.programmer Subject: Re: Delete slot in the middle of an array and shift remaining Date: Fri, 25 Nov 2011 14:15:30 -0800 Organization: Canadian Mind Products Lines: 19 Message-ID: References: <4ecf7078$0$6582$9b4e6d93@newsspool3.arcor-online.net> <20684688.629.1322220072927.JavaMail.geo-discussion-forums@prnh1> <8-GdnXrqhJJORlLTnZ2dnUVZ_rqdnZ2d@earthlink.com> Reply-To: Roedy Green NNTP-Posting-Host: Z2l1DcCELS0rATq8NqV4Sw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Forte Agent 6.00/32.1186 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:10243 On Fri, 25 Nov 2011 10:17:50 -0800, Patricia Shanahan wrote, quoted or indirectly quoted someone who said : > slot[0] = new String("first"); that "new String" is what I term "newbie stuttering". You can write it as slot[ 0 ] = "first"; "first" is already a String. Patricia was just tidying to create an SSCCE. She elected not to tidy that up. see http://mindprod.com/jgloss/stuttering.html -- Roedy Green Canadian Mind Products http://mindprod.com I can't come to bed just yet. Somebody is wrong on the Internet.