This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
What did you mean by "constant variable"?
You can declare a 'variable' with final keyword if you find it's appropriate for your design. The thing is you will have to instantiate the class before you can access a non-static variable.
Here you can access 'X' as in SomeClass.X But if you have omitted the use of 'static', X will be bounded to the objects created of SomeClass, and thus you will need to have an object of SomeClass before accessing X
There is a reason for each of the key words or modifiers that you may not realize in the relatively simple, single class?, programs you've written so far, but it's important to understand their purpose and proper application in more complex code.
Always learning Java, currently using Eclipse on Fedora.
Linux user#: 501795