This is Java, not C++. If you're going to post demo code, you should at least get the language right. If we don't have a Java forum, that means we're not interested in Java demo programs, right?