Since each function in java must be inside a class, you can get the same effect by declaring fields in your class. This is the easiest way, and java language developers are very conservative. They will never add such a function when there is a more obvious and less complicated way to do the same.
EDIT: I think philosophical functions are not the first class in java. They should not store data. There are classes, and they do it.
gtrak source
share