I know that is a beginner's question. I'm new to java and and also to programming in general.
Say I got a class that has only static data, example:
class Foo {
private static int x; }
I want to use the class without instantiating any object. So I want to be able to do:
Foo.setX(5);
Foo.getX();
What is the best way to implement this class, I'm a little bit confused about interfaces and other stuff for now.
Thanks.