jwenting 1,905 duckman Team Colleague

Don't think so.

jwenting 1,905 duckman Team Colleague

hmm, why do you group monarchism in with all those religions? It's the only one that has no religious meaning...

And you're missing Shintoism.

jwenting 1,905 duckman Team Colleague

Seeing all the idiots that almost kill me everyday, I know I can't be all that bad...
Almost crushed a biker between my car and the left emergency baricades this morning, when he tried to overtake me on the left with me in the left lane and maybe 2 ft of space between me and the barricade.
Was doing a leasurely 80mph, biker must have been doing at least 100.

jwenting 1,905 duckman Team Colleague

And you should really learn something about technologies before just heaping a ton of acronyms and buzzwords together and decide that's what you're going to use.

jwenting 1,905 duckman Team Colleague

You can actually do pretty much just that, you've almost succeeded in creating your own plugin architecture.

Congratulations on that, it takes many people years to figure out (if they succeed at all).

What you're looking at is an abstract factory to create adapters.

What you need is to create an interface (abstract baseclass would work as well but is far less flexible) which defines the methods that you need for your plugins to function.
Then you can just cast the result from the class instantiation to that interface and you can call any of those methods.

jwenting 1,905 duckman Team Colleague

All general mags (and most specialised ones) I've come across are little better than collections of advertising masked as "reviews" and "consumer reports".

jwenting 1,905 duckman Team Colleague

Same as Oracle. Find a JDBC driver and plug it into your Java application.

jwenting 1,905 duckman Team Colleague

You'll need to find an XML parser that's supported on your mobile platform.
JME being kind of limited that could be a problem.

jwenting 1,905 duckman Team Colleague

You can't, period.
OE might accept some forms of ActiveX controls as plugins, but nothing else.

jwenting 1,905 duckman Team Colleague

they let them out?
My father was in the catholic school for boys, which was next door to the catholic school for girls.
High wall divided the playgrounds, and classes were timed so that boys and girls would not meet even on the way to and from school.

That was in the 1940s of course.

jwenting 1,905 duckman Team Colleague

Bit stupid questions. More than a few several answers in combination would be the best option...
Got 90% despite that and not being completely familiar with US traffic regulations (hardly surprising as it's rather hard to drive there from here).

jwenting 1,905 duckman Team Colleague

less Martineyes and more Java and you would figure it out easily enough (maybe you're too young to know the joke here).

What you're asking for is all dirt standard functionality which you MUST be able to do almost with your eyes closed.

jwenting 1,905 duckman Team Colleague

Wrong button placement, always place the most logical control to leave a screen in the bottom right corner (so in this case the NEXT button, not the FINISH button).

And where do you get the 80% passing score? SCJP (at least the 1.4 exam) has a 52% passing score.

jwenting 1,905 duckman Team Colleague

I've little influence over the hiring process...

And if outsourcing to another company that hires anyone who knows how to spell the word "kompjuter" there's even less you can do except try to limit the fallout.

jwenting 1,905 duckman Team Colleague

If they don't want to learn, I don't want them to succeed because if they succeed without learning they become a burden on whomever they end up working with in the future (which may just be me...).

jwenting 1,905 duckman Team Colleague

So you're assuming the OP isn't reasonably intelligent yet can make a decent contribution to the industry if only he uses netbeans...

In fact if your first assumption is correct and he follows your advice soon he will be back asking how to run a Java program on another computer, which is the usual next question from such people (unless it's a post of a homework assignment by simply pasting the entire assignment text into a message with a topic description like "urgent doubt needed asap plz").

jwenting 1,905 duckman Team Colleague

Using an IDE will never teach him to install and configure his environment properly.
It's a workaround rather than a solution.

Download the JDK from http://java.sun.com and READ and follow the installation and configuration instructions.
They're quite good, the only reasonably intelligent people who have trouble are those who don't follow them.

jwenting 1,905 duckman Team Colleague

who cares about that bunch of fraudsters?

jwenting 1,905 duckman Team Colleague

I initially learned Java from O'Reilly's Java in a Nutshell, then went on to read the JLS.
I now have enough books about the platform to fill a small library...

jwenting 1,905 duckman Team Colleague

VB is definitely uncool.

jwenting 1,905 duckman Team Colleague

tough luck. If you'd paid attention in class and done your homework you'd have known what you needed to know.
We're not here to help couch potatoes get degrees they don't deserve so they can become our colleagues. We'd just have to do your work as well on the job because you're too lazy to do it yourself.

jwenting 1,905 duckman Team Colleague

we charge a minimum of 1 week at $150 an hour at 8 hours a day.

jwenting 1,905 duckman Team Colleague

the book is designed to make you think for yourself rather than present everything to you in nice predigested chunks or cud.

jwenting 1,905 duckman Team Colleague

I see this little class called a "FileReader", it sounds like something you could use.

jwenting 1,905 duckman Team Colleague

pretty much like you would do it using TCP.

jwenting 1,905 duckman Team Colleague

Who would give you a project in java about multithreading when you've never done java before?

He probably SHOULD have done Java before but didn't :mrgreen: :cheesy:

jwenting 1,905 duckman Team Colleague

I tried to do a System.out.println(seatNo) before the comment part and it prints out
1
2

when I entered in 1-2 in the seat number, so this means the split works, but i have issues with validating the seat type.

You're converting the string to an int, but then try to compare the string to your boundary conditions.
Why? Aren't you missing something there?

jwenting 1,905 duckman Team Colleague

So this means that i cant use < or > operators to compare the INTEGERS in the STRING array!

You're trying to compare integers to strings, that's not going to work.
An integer isn't a string after all, and the compilers tells you just that.

jwenting 1,905 duckman Team Colleague

think for yourself, that's one of the things they're trying to teach you.

jwenting 1,905 duckman Team Colleague

That won't work, iamthwee, because you're comparing only the entire range and not subranges thereof.

Think about what you're actually doing here. What's happening with the result of Integer.parseInt()?
What are you comparing with those hardcoded limits?

jwenting 1,905 duckman Team Colleague

Most of teh UAE is completely tax-free only for citizens, expats need to pay some taxes there (like income tax, which doesn't exist for citizens).

jwenting 1,905 duckman Team Colleague

The first submit button defined in the form has automatic keyboard focus for key events relating to the Enter key.
No need to do anything (unless you define your own higher level event handler to capture and discard those events of course, but then tabbing to the button and pressing space will activate it).

jwenting 1,905 duckman Team Colleague

why use frames at all? They were scrapped from the core html spec years ago, retained only as an optional system for backwards compatibility.
There's no need for them, and if you want to prepare for cross device compatibility you're going to have to do without them.

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

P.S. Most of the chemicals used to produce the main excuse for invading Iraq was sold by US. There is hard evidece of that.

Wrong. Most were delivered from France and Russia.

But of course the avid Bush haters won't ever believe anything that contradicts their ideas...

jwenting 1,905 duckman Team Colleague

Chaky, the US could have gotten hold of that oil FAR easier and cheaper had they just done what France did and sign a nice deal with Saddam.

Poison gas for oil, plutonium for oil, you name it and Saddam was willing to take it in payment for oil.

The fact that the US didn't go that way tells enough, oil was the last thing on the administration's mind (unless it was trying to prevent Iraq from threatening the flow of oil from Kuwait and Saudi like they had done in 1990) when they ordered the troops into the country.

jwenting 1,905 duckman Team Colleague

I have buddies in the US Army that tell me that the few Dutch soldiers are too busy with their hairnets to do any good! You must be sponsored by the Shell Oil Company that has huge interests in Iraq.

The Dutch forces were completely demoralised by the way they are being treated by their own political leadership.
When an Iraqi looter was hit by a ricochet from a warningshot and killed the Marine firing the shot was arrested and tried for murder.
He was cleared of all charges, but not before his name and face were plastered all over the news as a murderer.

They even went as far as to take a government jet, fly police to Iraq, and drag the guy out of his tent in handcuffs before his fellow Marines.

jwenting 1,905 duckman Team Colleague

But why do it like that?
Why not embed a web browser control in a Java window?
If simple HTML 3.0 is enough you can use standard controls for that, else you might have to find something on the web (or get creative and write your own HTML parser).

jwenting 1,905 duckman Team Colleague

methods in an interface are implicitly public, no need to declare them as such (at least in the interface, in the implementing class they MUST be declared public).

jwenting 1,905 duckman Team Colleague

public executions make for great entertainment. It also gets kids away from playing Doom 3 or watching violent movies and they still get their dose of blood and gore, so both the people wanting to stop kids from violent videogames and movies and the kids themselves are happy :)

jwenting 1,905 duckman Team Colleague

Dumb question indeed, and ambiguous.

Depending on how you define and assign your Listeners, none listen to everything.
A WindowListener hooked to a dialogbox may for example never listen to anything if that dialog is never launched.

He probably did mean a WindowListener, but those are related to only a single Window, not an entire application.
When for some reason that window (even if it's the main application window) can't receive an event it won't register with the WindowListener.

Also, a WindowListener responds to only some very specific events, namely those events directly related to the Window itself (activation and deactivation), and not even all of those.

An ActionListener only responds to specific user events associated with specific controls.

An ItemListener only works for specific controls like JLists which can contain multiple items.

And a GarbageListener doesn't exist.

There is in fact no single Listener which listens for ALL events an application may receive, so the only correct answer would be "e: none of the above".

jwenting 1,905 duckman Team Colleague

no, you misunderstand.

the reference is passed by value. That means you cannot change the reference itself, but you can change the content of the thing you're referencing.
So in your case the object referenced by t gets its data changed.
But the following would not work:

public static void resetX(Thing t, int x)
    {
        t = new Thing(x);
    }

The Thing outside the method would not get replaced by the new one, which goes out of scope on leaving the method and is lost forever.
Were Java using pass by reference (which it doesn't), the object outside the method would get replaced by the new one because the reference to it would be replaced by a new one.
Since Java uses pass by value, you're actually passing a copy of the reference to the method, so another reference pointing to the same memory space (thus Object).

It's a trap many beginners fall into, especially those coming from a C or C++ background where pass by reference (or passing pointers) is the standard way and such things are possible).

jwenting 1,905 duckman Team Colleague

of course, the penalty should always match the crime.
When you tie someone up and burn his house around them you should be burned at the stake.
When you electrocute someone, it's the electric chair.

Makes for variety, which makes for good entertainment (and prevents the job of executioner from becoming boring).

jwenting 1,905 duckman Team Colleague

Comatose, there never needed to be such a link.
Under the 1991 ceasefire arrangements every UN member has the obligation to use whatever means (up to and including military means) needed to make sure weapons inspectors are provided full and unhindered access to any place in Iraq that they may desire.
Iraq has been in violation of their treaty obligations to that regard from as far back as 1995 at least, and the world has failed to take appropriate action until 2003.
Now the inspections are complete, and the troops are kept in place to support the Iraqi people in their struggle against domestic and international terrorists and criminals who wish to disrupt the democratic process in Iraq for their own purposes (a democratic process first disrupted when Saddam took power in a military coup).
The international forces act as police, training cadre for the Iraqi armed forces, and as construction crews to rebuild damage done to Iraqi infrastructure during the war.
They're quite effective at that, large parts of the country are now at peace (or close to), more schools and hospitals are operational (and offer better quality services) than most Iraqi people have ever experienced, and there are free elections.
Most cities in Iraq are now safer to walk the streets than say LA or Miami.

jwenting 1,905 duckman Team Colleague

So effectively you have in Java ALWAYS the equivalent of passing a "
"const &" in C++.

jwenting 1,905 duckman Team Colleague

Ok, I think I see what you're saying. Objects are passed by reference. So as long as you're not trying to do this with any primitives (int, float) then anything you do the passed variable has immediate affect on it.

WRONG WRONG WRONG!

Objects are NEVER passed in Java AT ALL.
Neither is anything ever passed by reference.

Instead references are passed by value.
You can NOT change the reference and expect the one in the calling method to change.
You can however change datamembers on the reference and those changes will be reflected because they're actual changes on the reference that's residing inside the calling method.

jwenting 1,905 duckman Team Colleague

You'd be better off writing that sort of thing in C++ or Delphi with maybe some Assembler code as well.

jwenting 1,905 duckman Team Colleague

never needed the functionality either, but it gets asked often enough that I looked into options just for the heck of it.
Guess it was originally intended for IDE makers, and now possibly for appserver builders.

jwenting 1,905 duckman Team Colleague

We have the moral responsibility to help the people of Iraq do their own thing without falling prey to terrorists or (worse) Iranian invasion.

The goals set out have largely been achieved, Saddam has been removed as a supporter of terrorism and terrorists as a group are too busy now to bother the US or Europe.
The only failure is the one of the political left and their cronies in the press to convince the world that the mission in Iraq was unjust and has failed.
Of course there are always people who will fall for any leftist propaganda.

jwenting 1,905 duckman Team Colleague

for the server you ALWAYS have to use multithreading ;)
For the client as well really, else you either can never enter any text yourself or won't get anything back until you do.