Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: bilsch Newsgroups: comp.lang.java.programmer Subject: Re: Newbie has simple question Date: Wed, 02 May 2012 05:39:28 -0700 Organization: A noiseless patient Spider Lines: 14 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Wed, 2 May 2012 12:39:30 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="llALXQ6TxsVqIoSLcrwVyA"; logging-data="4504"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+79YtM629SLWYP2c4uuj9g" User-Agent: Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 In-Reply-To: Cancel-Lock: sha1:X0Al+83G6FlsEc1++1a6IxiG8EY= Xref: csiph.com comp.lang.java.programmer:14130 On 05/02/2012 05:22 AM, Stefan Ram wrote: > bilsch writes: >> statement causing the error is: >> System.out.print(bstr.nvchr[n]); > > This requires »nvchr« to be a field of »bstr« (»BigString«), > but »nvchr« is not a field of »bstr« (»BigString«). It is only > a local variable used in its constructor. > I don't understand what makes it different than the variables fin and count which are both printable from the main program. Is there no way to make it work? What does it mean to be a 'field'? Could you tell me more?