Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #23825

Re: cannot find symbol?

Date 2013-05-04 18:29 +0100
From lipska the kat <"nospam at neversurrender dot co dot uk">
Organization Trollbusters 3
Newsgroups comp.lang.java.programmer
Subject Re: cannot find symbol?
References <km33or$omi$1@speranza.aioe.org>
Message-ID <hZ-dnTUZlcP-2BjMnZ2dnUVZ8kKdnZ2d@bt.com> (permalink)

Show all headers | 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


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