-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Declaring the Set variable public
PostPosted: Wed May 04, 2005 12:30 am 
Newbie

Joined: Wed Dec 29, 2004 2:37 am
Posts: 11
Ok, it doesnt make sense, but for i quick conversion i tried to do this

class {

public java.util.Set myvariable;

public Set getMyvariable() { return myvariable;}
public Set setMyvariable(Set avar) { myvariable= avar; }
}

I may have missed it in the docs or maybe im imagining it, but when i change the variable declaration it works, and when i dont it explodes horribly. thoughts -- or at least a pointer to a paragraph that i missed along the way.

i have read everything i can see, and though the big words scared me here and there, i thought i caught them all.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.