A
Abrasive Sponge
public class Person {
private String firstName;
private static int count;
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public String getFirstName() {
return firstName;
}
public static setCount(int count) {
static.count = count; //using a static keyword as such
}
public static int getCount() {
return static.count; //using a static keyword as such
}
}
I was wondering if the java language can use something
like this....maybe there is something that I don't know, but having a
static reference like this would kick butt.
private String firstName;
private static int count;
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public String getFirstName() {
return firstName;
}
public static setCount(int count) {
static.count = count; //using a static keyword as such
}
public static int getCount() {
return static.count; //using a static keyword as such
}
}
I was wondering if the java language can use something
like this....maybe there is something that I don't know, but having a
static reference like this would kick butt.