Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail From: markspace Newsgroups: comp.lang.java.programmer Subject: Re: cannot find symbol? Date: Sat, 04 May 2013 05:43:19 -0700 Organization: A noiseless patient Spider Lines: 16 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sat, 4 May 2013 12:39:54 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="fba3415ba68d85d643935af2f52f0b4b"; logging-data="13115"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Jov9uywKVEpcUEmMIZYpMTGpB4H/jUb4=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 In-Reply-To: Cancel-Lock: sha1:9oy/ZuuR2NtYtCw+s3Ww+h0gsQE= Xref: csiph.com comp.lang.java.programmer:23820 On 5/4/2013 3:50 AM, qwertmonkey@syberianoutpost.ru wrote: > class Ho3K{ > private String aS; > Ho3K(){} > public void setCtxt(String aS){ this.aS = aS; } > public String toString(){ return(" aS: |" + aS + "|"); } > System.err.println("// __ Ho3.getCtxtDTO() : |" + Ho3.getCtxtDTO() + "|"); > How do you do such a thing? What is "such a thing?" What are you even *trying* to do? You can't call "getCtxtDTO" on an object that only defines the methods "setCtxt" and "toString".