Results 1 to 4 of 4
- 11-17-2008, 02:02 PM #1
Member
- Join Date
- Nov 2008
- Posts
- 3
- Rep Power
- 0
- 11-17-2008, 02:40 PM #2
Member
- Join Date
- Oct 2008
- Location
- UK
- Posts
- 65
- Rep Power
- 0
use the public modifier, e.g.
Java Code:public int[] CODES;
- Is it really a variable, or is it something that must remain constant (in which case you add the final modifier).
- Does this belong to an instance of the class, or is it something that you need to be available without creating instances (in which case you make it static).
Instead of using a public variable, it may be better, depending on your requirement, to keep it private and use modifier methods.
- 11-17-2008, 03:24 PM #3
Member
- Join Date
- Nov 2008
- Posts
- 4
- Rep Power
- 0
hahahaha i got it too work!!!!!!!!!!!!!!!!!!!!!
D
D
D
thanks guys :)
- 11-17-2008, 04:49 PM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,370
- Blog Entries
- 1
- Rep Power
- 25
Similar Threads
-
Interface variable to class
By zill in forum Advanced JavaReplies: 6Last Post: 10-11-2008, 04:29 AM -
Naming a class instance with a variable
By pikalex88 in forum New To JavaReplies: 3Last Post: 09-30-2008, 07:27 PM -
Which class and variable to choose?
By kian_hong2000 in forum New To JavaReplies: 8Last Post: 08-27-2008, 08:06 AM -
Calling a variable from main to another class
By itsme in forum New To JavaReplies: 1Last Post: 12-18-2007, 04:35 PM -
Public class variable
By Java Tip in forum Java TipReplies: 0Last Post: 12-03-2007, 10:58 AM
Bookmarks