jwenting 1,905 duckman Team Colleague

yes, it is risky to use the com.sun classes.
But in theory the commandline for the compiler could also change.
And of course the compiler will have a different commandline on other operating systems.

jwenting 1,905 duckman Team Colleague

you start by writing down how to do it, not by having someone else do it for you.
No compiler or code editor required, use pen and paper and write it out in normal English (or your own language).
Then start thinking of what language constructs would best map your solution.
Only then start coding.

jwenting 1,905 duckman Team Colleague

that's one way.
Another is to play with nested layout managers.

jwenting 1,905 duckman Team Colleague

Scanner is new in JDK 5.0.
Netbeans 3.x is seriously outdated, won't know about it.

jwenting 1,905 duckman Team Colleague

doesn't seem like a logical solution to me, but then I'm used to scientific calculators with built-in equation editors ;)

Create the entire equation as a single string and parse that using (for example) a recursive descent parser.
There's a nice book that does pretty much just that in one chapter called "the art of Java", then in the next chapter turns that calculator into a simplistic BASIC interpreter.

jwenting 1,905 duckman Team Colleague

uh, you're saying it appears in both 1.4 and 5.0...

That may not be what you intended to say though ;)

I hardly if ever use the runtime class, never really needed it.
And you don't either. If you dive into the Java API you'll find out how to run the compiler in-process.

jwenting 1,905 duckman Team Colleague
jwenting 1,905 duckman Team Colleague

by learning how things work instead of hoping that some IDE will do it all for you.

Study the Swing path of the Java tutorial and you should be able to figure it out for yourself, and learn a lot more besides.

jwenting 1,905 duckman Team Colleague

you might not be stupid, but your childish use of language makes you look incredibly stupid.

Listen to advise, learn the language and libraries before trying something complex. You sound just like the many kids who never programmed in their lifes and run into game programming boards with their questions on how they can create the next Doom beating game in a week.

jwenting 1,905 duckman Team Colleague

your welcomeServlet doesn't support POST requests...
neither does calling one JSP from another.

jwenting 1,905 duckman Team Colleague

not urgent.
bad idea.

intercept the datastream coming in from the client, save it into a byte array, and store that into a BLOB in the database.

jwenting 1,905 duckman Team Colleague

write a distributed generator for project titles.
Should come in handy for websites like this, kids could just click a button and get a random project.
Saves us a lot of work answering the dozens of questions each semester from kids having to think of a project to do for school and too unimaginitive or lazy to think for themselves.

jwenting 1,905 duckman Team Colleague

rtf wouldn't understand html tags, instead consider them to be normal flat text (unless a specific html tag would happen to also be an rtf tag (in which case it would almost certainly be something completely different) in which case you'd likely end up with corrupted rtf.

The rtf editor kit is not meant for html, you're going to have to write something that parses html and uses the results of the parser to send commands to your rtf editor.

jwenting 1,905 duckman Team Colleague

The 6.0 is still in beta, use 5.0 instead.

jwenting 1,905 duckman Team Colleague

If you need to pay people to use your site, your site isn't worth visiting and you'd better rethink your business model.

jwenting 1,905 duckman Team Colleague

the full source code of production releases of the core API is included in the distribution.
AFAIK the same is true for beta releases.
The full source of the JDK is also available online from the JCP, but do read the license.

You will NOT be allowed to distribute any modified versions of any version of the JDK or JRE btw. and there are strict limits to what you're allowed to do with the source (you're not allowed to use it as part of your own work for example).

jwenting 1,905 duckman Team Colleague

hell, no. That's far too complicated...
You can skip the sorting, and do a rather simple check on duplicates on filling the return array.

jwenting 1,905 duckman Team Colleague

do your own homework.
This is so basic you should be able to do it with a few hours of instruction.

jwenting 1,905 duckman Team Colleague

he does need the PSDK, as the versions shipped with VC6 are so far outdated that VC2005 will not work with them.
VC2005 requires the latest version of the PSDK.

jwenting 1,905 duckman Team Colleague

kids like this are the main reason I stopped gaming online and went back to nearly exclusively battling it out with the computer.

jwenting 1,905 duckman Team Colleague

bad idea. What you're saying is "don't learn to use your tools, here's a quick hack for the terminally lazy and stupid".

jwenting 1,905 duckman Team Colleague

probably a classic case of not adding the current directory to the classpath.
"java -cp . myprogram" should do the trick until you learn to use proper naming conventions for your classes and members.

jwenting 1,905 duckman Team Colleague

and put in the correct jdbc URI.
The example used a mySQL database as an example, and of course a different database name and machine.

See the documentation (which you should have, it's available from Oracle and I think comes with the driver) for the details.

jwenting 1,905 duckman Team Colleague

I wouldn't expect that class to have a main method btw as it doesn't look to be something that stands on its own.
It looks far more like a panel to be used as part of either a larger application window or as a the content of a dialog box called from within such an application.

Independent applications would normally derive from JFrame instead of JPanel for example.

jwenting 1,905 duckman Team Colleague

If you're using Turbo C you will never get anything using C++ style stream IO to compile.
If you're using Turbo C++ you won't likely get it to work either as it implements the old AT&T C++ definition which is (in places) quite different from the current ISO standard.

The free Borland 5.5 compiler is a good choice to learn. After that you should consider getting Visual C++ 2005 Express and the Windows Platform SDK (both free).
More modern/up to date compiler with a very nice editor indeed (total download is only about 850MB compared to something like 5MB for the Borland free compiler ;) ).

jwenting 1,905 duckman Team Colleague

We're far far away from all those 1337 hax0rz, gives a sense of security ;)

too old/accused of being related to Marvin/far outer eastern rim of the galaxy

jwenting 1,905 duckman Team Colleague

I have over the past 20 years that I've been programming (half of that professionally) learned and used something like 20 programming languages (not counting languages I can read but not write).

There's no reason to restrict yourself to a single language, in fact it's counterproductive.
Learn different languages, and different kinds of languages. Keeps you sharp and teaches you different ways to tackle problems, as well as giving you the tools to attack different kinds of problems each in the best way possible.

jwenting 1,905 duckman Team Colleague

yes, but that makes your sources compiler dependent, something you should if possible try to avoid ;)
Better let the linker config handle such details.

jwenting 1,905 duckman Team Colleague

Both have their strengths and weaknesses.
Of the two, I like Eclipse better, but neither is my favourite.

I do most of my Java coding (what little there is left of it) in JBuilder 2005 these days, and the rest in VI.
Almost all compiles are done using ANT scripts.

jwenting 1,905 duckman Team Colleague

Doesn't matter if it's tolerant of old style code, it's there for backwards compatibility only.

I can also run a 16 bit application on XP, doesn't mean I should make them just because they're easier to write...

jwenting 1,905 duckman Team Colleague

though you may also want Glu32.lib

jwenting 1,905 duckman Team Colleague

Install the Win32 platform SDK, and link in OpenGl32.lib
I don't think you need to do anything else.

jwenting 1,905 duckman Team Colleague

I never overgeneralise (how's that for overgeneralisation ;)).

jwenting 1,905 duckman Team Colleague

what makes me wonder is what competition judge would give high marks for someone using C style (IO) routines in a C++ application where a C++ alternative is available.
Programming style is highly important in most competitions, and that's exceedingly poor style.

jwenting 1,905 duckman Team Colleague

well, if I were a teacher having to grade that I'd fail it immediately anyway.
Ugliest mix of C and C++ I've ever seen, global variables, very bad variable naming, etc. etc.

jwenting 1,905 duckman Team Colleague

"dad" is a palindrome.

depends on the definition used. Some might say it's not a palindrome because the a isn't the same as another letter in the word (even though being of course identical to itself).

jwenting 1,905 duckman Team Colleague

nothing wrong with old tutorials, they teach the core instead of getting sidetracked into fancy new additions...

Why include XP skinning into a tutorial teaching introductory Win32 programming for example...

jwenting 1,905 duckman Team Colleague

why should I write such a program?

jwenting 1,905 duckman Team Colleague

hmm, who should want to give Google access to their entire corporate email system?
The security implications (giving all your corporate communications to an outside party who reserves the right to do whatever they want with it including selling it to the highest bidder) outweigh even the massive privacy problems with gmail and Google in general.

jwenting 1,905 duckman Team Colleague
JButton clickMe = new JButton("Click Me!");

After that all you have to do is map the actionevent from the buttonclick to a method that reads out the screen, generates an email using JavaMail, and sends it off.
See any Swing tutorial for the first part, and the JavaMail docs for information on the second.

jwenting 1,905 duckman Team Colleague

you can't write to a file inside a jar.

jwenting 1,905 duckman Team Colleague

it will work on any CPU as long as there's a version for the operating system you're using.

jwenting 1,905 duckman Team Colleague

congratulations. That's just about the highest number of buzzwords I've ever seen in a single job description.

jwenting 1,905 duckman Team Colleague

You can save anything you want. It's just a bag o'bytes on the disk (or whatever storage medium you're using) after all.

Just use the correct stream classes (things like ByteArrayOutputStream) and set the file flags correctly (you may want a RandomAccessFile).

jwenting 1,905 duckman Team Colleague

and there's only 3 things women like: shopping, watching Oprah, and pissing off men...

jwenting 1,905 duckman Team Colleague

any code you write during office hours belongs to the company, not just complex code.
Depending on your contract (and legal conditions in your locale) they could even claim that any code you write during your spare time belongs to them as well.

jwenting 1,905 duckman Team Colleague

I know JBuilder and ANT (and JBuilder uses ANT for it) can generate the manifest for you if you tell them the required information (like the main class...).
Comes in handy when you want an ANT script that does everything from compiling to testing to building your distribution archives.
RTFM to find out how.

jwenting 1,905 duckman Team Colleague

check the documentation of the jar command.
If you insist on using an IDE to prevent you from learning the language and its tools use its documentation as well.

jwenting 1,905 duckman Team Colleague

you can't use any of the standard List classes for that.
There's a SortedSet which you could use but it isn't a List.

Either use another style of Collection or write your own SortedList which I've actually done about 2 years ago, took me only a few hours.
Can't give you the code, it belongs to the company, but it's rather simple to wrap a List interface around a SortedSet (for example).

jwenting 1,905 duckman Team Colleague

apart from renaming the function "median" to "average" to better reflect its function?
And of course renaming the local variable "average" to something like "sum" to reflect its function.
What's the reason for returning the stream from your "vec" function when you then discard the darn thing?