jwenting 1,905 duckman Team Colleague

In this particular case it probably wouldn't make any difference as String is immutable.
If a member isn't and doesn't implement Cloneable you'll have to explicitly make a deep copy yourself.

There might be more to it, I've not used Cloneable extensively myself, but that's how I understand it to work.

jwenting 1,905 duckman Team Colleague

It's overall pretty good (and I do have it), but I've heard that there are problems with parts of it.
You should IMO never rely on a single source of information anyway (easier said than done I know, especially if you're on a tight budget).

jwenting 1,905 duckman Team Colleague

or you can write your own, outputting SLK for example.
The format is well described and though messy offers flexibility.

Technically of course you wouldn't have to do anything as Excel can read and interpret CSV files directly ;)

jwenting 1,905 duckman Team Colleague

or ROT13 as it's more correctly called.

Hardly solid encryption, but a nice placeholder.

jwenting 1,905 duckman Team Colleague

find a hosting provider for it, or install your own servlet engine.

jwenting 1,905 duckman Team Colleague

reason?
The first is a bit flashy, the third has the bad guys win, and the 2nd trilogy sucks in comparison.
Only major drawback of ROTJ are ewoks.

jwenting 1,905 duckman Team Colleague

You can't run ASP inside a JVM.
You can make an HTTP request to the server from which you got the applet, calling the ASP, and do something with the result.
Assuming of course you're hosting your applet on a server that can execute ASP.

jwenting 1,905 duckman Team Colleague

yes, Return of the Jedi must be my favourite too.
But to be honest any of the first trilogy blows the second trilogy to pieces.

Of course the true bad guys are Skywalker and his rebel terrorists.

jwenting 1,905 duckman Team Colleague

I repeat: You CAN'T use Strings.
So you MUST use either Enums or integer literals.

jwenting 1,905 duckman Team Colleague

Why are SF and Westerns classes of their own and not literature/fiction?
Are they not good enough?
Are they somehow worse than the kind of crap you could read in Reader's Digest (which would fall under literature in your breakdown)?

I read a lot, mostly SF&Fantasy but far from exclusively so.
Lots of tech stuff as well, and political/military thrillers.
Spend something like €100 a month or more at bookstores on books alone.

jwenting 1,905 duckman Team Colleague

1) Conformity
2) Too many to fight
3) Everyone else does...
:twisted:

conformist...
#1 and #3 should be reasons to do something completely different.
#2 makes watching the astonished reactions and uncomprehending faces easier :D

jwenting 1,905 duckman Team Colleague

The Discworld series is good with me, but my absolute favorites are the Discworld adventures of Tiffany in "The Wee Free Men" and "A Hat Full of Sky".

You'll like Wintersmith then, it also features the Wee Big Hag :p

jwenting 1,905 duckman Team Colleague

That's distinct pageviews, not visitors...
If people reload the page, another pageview.

jwenting 1,905 duckman Team Colleague

The odds are impossible to gauge without a thorough analysis of the algorithm used.
It is however extremely easy to provide a technically correct hashCode implementation that ALWAYS returns the exact same value, so you should NEVER rely on hashCode to be even remotely unique.

As to Enums, read up on those. You can switch on them as well as on integer constants.

jwenting 1,905 duckman Team Colleague

Anarchy Online is free (as long as you don't use any of the addon packs).
Guildwars is free to play, just buy the box, there's no monthly charge.

jwenting 1,905 duckman Team Colleague

And why would that be clearer?
There's no reason at all to do that, unless maybe you've been stupid enough to define one of your class' methods to have an identical signature to a standard library function.
But in that case you should rename your own method...

jwenting 1,905 duckman Team Colleague

That MIGHT work but doesn't have to.
It all depends on the implementation of the hashcode method, which isn't guaranteed to return a unique number for each possible input.
So more than one String can yield the same hashcode.
And even if it works it's a very dirty hack.

Use enums instead.

jwenting 1,905 duckman Team Colleague

That is possible, except you need to enter the key during installation so you wouldn't get very far.

But the keys themselves aren't specific to a CD, so each CD will work with each key you may have (for the same version of XP of course, an XP Pro key won't work for an XP Home CD for example, and most likely a Dutch XP Pro key won't work with a German XP Pro CD).

jwenting 1,905 duckman Team Colleague

Most of our servers that aren't running Solaris are running on RH Enterprise.
The rest run Debian.
That's a total of something like a hundred Linux servers.

jwenting 1,905 duckman Team Colleague

An applet isn't technically a program :)
Same as a servlet or an EJB, both of which run without a "main" method.
Same for a SOAP service.
All can exist only within a specific runtime environment, and are effectively plugins to that environment.

jwenting 1,905 duckman Team Colleague

The things taught about multithreading in non-dedicated books (and some dedicated books) are either overly simplified (often to the point of being dangerous when applied to real scenarios) or dead wrong (because the authors themselves didn't understand the topic).

As a result a lot of multithreaded code will work, usually, but only on a single CPU machine where there will never be multiple threads executing in parallel.
When run on a multicore or multiCPU machine they far more quickly run into trouble.

jwenting 1,905 duckman Team Colleague

ah, Pratchett. Another favourite of mine. I've about half his work in first edition hardcovers, the rest (ALL of it except trucker, diggers, and what was that other one) in softcover.

jwenting 1,905 duckman Team Colleague

Get yourself a good book, and start reading.
Here's an excellent one (in fact one of the very few really good books about it): http://www.bookpool.com/sm/0321349601

jwenting 1,905 duckman Team Colleague

there is no "main function" in Java, only a "main method".
It is required to have the exact signature "public static void main(String[] args)" or a lexical equivalent (it can for example be made final, or you may use another name instead of args).

Without that the JVM will not start executing the program.

There is one way to get something done, but that's NOT running a program.
That way involves creating a static initialiser block in the class, which will be executed at class loading time.

This smells horifically like a homework question so I won't show you how to do it :)

jwenting 1,905 duckman Team Colleague

And what is the question?

jwenting 1,905 duckman Team Colleague

If you look in my personal library, you'll notice a certain tendency to buy different editions of the Lord Of the Rings (and secondary literature to go with it).
I currently own 6 editions, have owned 2 more but gave them away when they became rather dogeared.

Must have read it 15 times at least over the last 17 years (when my love affair with it began).

jwenting 1,905 duckman Team Colleague

You do I hope realise that it's very bad practice to do such things in a JSP?

Send the form submit to a servlet and do it there, then send the result of that operation back to a JSP for display.

jwenting 1,905 duckman Team Colleague

Tomcat comes with some rather nice examples which would answer your questions.

You will also want a GOOD MODERN book about JSP, like the latest edition (3rd edition) of O'Reilly's Java Server Pages book.
You'll also want something on good web application design (to avoid falling into the trap of putting business logic into your JSPs.
O'Reilly's Head First Servlets and JSP is a good choice for that.

jwenting 1,905 duckman Team Colleague

No, but I bet you did (in the past) give presents with 'sinterklaas'. It's a dutch holiday on the 5th of december, very similair to what Christmas is in America (Sinterklaas - SantaClaus get it?).

We did, but unlike Christmas gifts it was never about showing off by trying to buy the most expensive gifts.
In fact (as it should be) all gifts were anonymous, you were not to know who provided which gift (of course the labels would often give that away).

jwenting 1,905 duckman Team Colleague

And what's the problem?
I don't see any attempt to do anything of the kind in there...

String has methods to turn a String into a character array, and to read a character array into a String.
Character provides a means to turn a char into a String.
CharSequence (from which String derives) has methods to manipulate itself on a character level.

jwenting 1,905 duckman Team Colleague

no need to post the same thing all over the web :)

In danger of repeating myself: there is no real "guide". If you determine you're running out of memory and are sure it's not a leak, give the JVM some more of the stuff.

I've now upgraded Eclipse to use 1GB heapspace + 256MB permGen space for example, and it uses something similar in other RAM (mainly stackspace), for a total of something like 2GB total (and pretty much constantly).
Anything less causes it to crash with the large complex projects I've loaded into it (thousands of classes and interfaces, thousands of XML and properties files).

jwenting 1,905 duckman Team Colleague

You can't.
A class knows nothing about classes deriving from it and even less about other classes deriving from its own baseclass.

jwenting 1,905 duckman Team Colleague

Rather ambitious for a 17 year old kid.
Do remember that such things are more usually started by large companies with massive budgets employing well paid professionals rather than by a bunch of kids in their bedrooms.

You'd be far better off trying something on a smaller scale, and actually getting it to work and work well before you attempt a major project.

And once you do get to start such a major project, take care of the spelling and grammar of your press releases and other publications.

jwenting 1,905 duckman Team Colleague

get a good book instead, and ditch Netbeans until you know what you're doing.

jwenting 1,905 duckman Team Colleague

see the documentation for String.replaceAll(String, String).

jwenting 1,905 duckman Team Colleague

StreamTokenizer(InputStream is)
Deprecated. As of JDK version 1.1, the preferred way to tokenize an input stream is to convert it into a character stream, for example:
Reader r = new BufferedReader(new InputStreamReader(is));
StreamTokenizer st = new StreamTokenizer(r);

Why are you using a deprecated constructor?
You should ALWAYS avoid ANY deprecated method or class.

TT_EOL indicates that the end of line has been read. The field can only have this value if the eolIsSignificant method has been called with the argument true.

Did you even read the Javadoc?
It says quite clearly that you MUST take a very specific action to ever get that flag returned at all, an action you didn't take.

i got this error. what did i do wrong???

That's not an error, it's a warning.
You're compiling against a 1.5 compiler using code that uses collections without properly typing them.
Read up on generics.

jwenting 1,905 duckman Team Colleague

Noone's going to browse through your stuff and fix it all for you.
Copy relevant parts in code tags and show where you have problems, and people will most likely try to help.

jwenting 1,905 duckman Team Colleague

bleh, only about 10 minutes to download :)
Too busy with other things (brushing up my Spring knowledge and getting some reading in on EJB3) or I'd try it out.

jwenting 1,905 duckman Team Colleague

welcome back Narue, we missed you.

jwenting 1,905 duckman Team Colleague

Watcom is back? Thought that compiler was declared end of life a decade ago.

jwenting 1,905 duckman Team Colleague

and just as important as trying to give good advise is to try and word it in proper English.

1337 sp33ch and SMS shorthand are NOT proper English.

jwenting 1,905 duckman Team Colleague

Even with their spamfilter some slips through, but indeed the vast majority gets caught.
Of course my hotmail account is almost a decade old (yes, I'm that old) and bound to be in more spam databases than most.

jwenting 1,905 duckman Team Colleague

Wrong. I've done tests where I created a new email address on my own server and domain.
Before I ever used it anywhere (it was only intended for this test) I was getting spam, sometimes within 5 minutes of the address being created.
My bouncelogs also show a lot of email from suspicious domains being bounced that was directed at non-existent addresses.

Spammers might harvest forums and usenet for addresses, but they ever more also use software that generates addresses on the fly.
Want to spam every hotmail address? Just send email to everything from a@hotmail.com to zzzzzzzzzzzzzzz@hotmail.com (for example).

jwenting 1,905 duckman Team Colleague

That all depends on what you want that thing to do...
If it's just a textarea scrap it completely ;)

If it's a JPanel with some components, build it just like you would a complete dialog box, and add it to your window.
It would derive from JPanel though, not JTextArea.
If you want a JTextArea with some specific handling, just override some of its methods in it, don't wrap one in it.

jwenting 1,905 duckman Team Colleague

Your "MoveSelectedFiles" class doesn't work.
You apparently think the contained JTextArea should show up but it never will.

Just add a regular JTextArea instead, and see what happens.

jwenting 1,905 duckman Team Colleague

That ad sounds very much like a practical joke.
It's a jab at the massive delays surrounding that game, which by now is more than 6 years late in getting to market yet never officially cancelled (I think their website still lists it as "coming soon" or something like that).

Java is pretty much everywhere these days, from finance to energy to industry to retail.

jwenting 1,905 duckman Team Colleague

don't your university instructors ever use google ? But I don't know how difficult it is for you people in India to get modern compilers.

When I was in school Google didn't exist :)
But we were already using more modern tools than TC 3...

jwenting 1,905 duckman Team Colleague

There is no such thing as "the ends are one degree apart" in mathematics.

You probably mean you want to draw lines at angles offset from each other by one degree and originating all at the same point.

Nothing hard about that, just look at the line drawing methods and with a bit of trig you should be able to figure out how to do it.

jwenting 1,905 duckman Team Colleague

Javascript isn't Java, neither is ASP.

jwenting 1,905 duckman Team Colleague

Bad advise, very bad.
You should learn about encapsulation before telling people to do things like that.
Not only are you dead wrong, what you suggest is the worst way to expose members to the outside world.