Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #23825
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeder2.ecngs.de!ecngs!feeder.ecngs.de!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail |
|---|---|
| NNTP-Posting-Date | Sat, 04 May 2013 12:29:06 -0500 |
| Date | Sat, 04 May 2013 18:29:02 +0100 |
| From | lipska the kat <"nospam at neversurrender dot co dot uk"> |
| Organization | Trollbusters 3 |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4 |
| MIME-Version | 1.0 |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: cannot find symbol? |
| References | <km33or$omi$1@speranza.aioe.org> |
| In-Reply-To | <km33or$omi$1@speranza.aioe.org> |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 8bit |
| Message-ID | <hZ-dnTUZlcP-2BjMnZ2dnUVZ8kKdnZ2d@bt.com> (permalink) |
| Lines | 23 |
| X-Usenet-Provider | http://www.giganews.com |
| X-AuthenticatedUsername | NoAuthUser |
| X-Trace | sv3-UkzLamfjksPl6fBBja1sbaVaYXOrouxpfMOFCOnpqocXYtblUfiwjWMBW+gi+5A/9UTGlCdgAyWyOPV!UvFx0qrTTD163o+vNk41R00rVb9ve1jsWiJ8jLmz7soGxzpCCasWIE3xGzWT1dBha7g768zNTB0= |
| X-Complaints-To | abuse@btinternet.com |
| X-DMCA-Complaints-To | abuse@btinternet.com |
| X-Abuse-and-DMCA-Info | Please be sure to forward a copy of ALL headers |
| X-Abuse-and-DMCA-Info | Otherwise we will be unable to process your complaint properly |
| X-Postfilter | 1.3.40 |
| X-Original-Bytes | 2045 |
| Xref | csiph.com comp.lang.java.programmer:23825 |
Show key headers only | View raw
On 04/05/13 14:51, 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?
Someone has suggested you use interfaces to achieve your goals.
Here is an example of Strategy pattern in Java. You need to scroll down
a bit to see the Java code.
http://en.wikipedia.org/wiki/Strategy_pattern
No generics, just interfaces, if this approach is unsuitable perhaps you
could tell us why, I'm intrigued as to what *exactly* you are trying to do.
lipska
--
Lipska the Kat©: Troll hunter, sandbox destroyer
and farscape dreamer of Aeryn Sun
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
cannot find symbol? qwertmonkey@syberianoutpost.ru - 2013-05-04 13:51 +0000
Re: cannot find symbol? Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2013-05-04 09:43 -0700
Re: cannot find symbol? lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-05-04 18:29 +0100
Re: cannot find symbol? Arne Vajhøj <arne@vajhoej.dk> - 2013-05-04 21:44 -0400
Re: cannot find symbol? Arne Vajhøj <arne@vajhoej.dk> - 2013-05-04 21:47 -0400
Re: cannot find symbol? Lew <lewbloch@gmail.com> - 2013-05-06 13:12 -0700
Re: cannot find symbol? Arne Vajhøj <arne@vajhoej.dk> - 2013-05-06 21:52 -0400
csiph-web