I know this isnt a Java oriented-board, but this is the only message board I ever really come to, and since the other boards are for C/C++ only, I thought I would post my little Java Woe on this board.

Its a very small one.

A. Does Java allow templated classes? I have a very big Java book, and nowhere in the entire book does it talk about templated classes. Neither does my Java help file, so I am assuming Java doesnt allow them. Is that a correct assumption? Personally, that is incredibly stupid if it doesnt, because you cant create very versatile array/stack/queue classes without templated classes.

B. I hate that Java doesnt allow this syntax:

class MyClass {
public:
int a, b, c, d, etc;
private:
blah blah blah
}

instead in java you must do this:

class MyClass {
public a, b, c, d, etc;
private blah blah blah
}

which means if you have a very big class, you must list the words public/private/or protected in front of every single variable or function you want to specify, instead of just creating a section pof publics, and a section of privates, etc.

GRRRRR