Java

Moderators: zibadian
Number of threads: 7836
Number of posts: 18235

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Re: Variables with fixed value Posted by victorious on 6 Aug 2008 at 3:45 AM
: Is there in Java an operator that allow to a variable only a fixed
: set of values. For example the variable char color have only these
: value: "red","yellow",.. "etc".
:


see http://mindprod.com/jgloss/immutable.html read about Collections.unmodifiableList. Hope it helps.
Thread Tree
Acmeman Variables with fixed value on 6 Aug 2008 at 1:51 AM
victorious Re: Variables with fixed value on 6 Aug 2008 at 3:45 AM
kvureshkumar Re: Variables with fixed value on 11 Aug 2008 at 4:44 PM



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.