jwenting 1,905 duckman Team Colleague

Just a note, you can do this, and many people do, but be aware that
this class is not guaranteed to work the same from version to version,
or even that it will still be there in the next version of java, or even that
it may do something completely other than what it does now in the next
version. Read the sun.* class declaimer in the API docs.

And that's why there is java.lang.Compiler for your compilation pleasure.
I've not tried it, but it's there fore JVM creators to implement if they so desire.

jwenting 1,905 duckman Team Colleague

First Encounters is fun, if you have the second release. First release was so buggy they had to withdraw it from stores...
Second isn't quite stable, but playable.

jwenting 1,905 duckman Team Colleague

Well, a Wombat is the closest thing to a hedgehog listed so that's what I chose.
And I'm one BIG hedgehog :)

jwenting 1,905 duckman Team Colleague

And you don't even have to use javac at all. There are ways to call an in-process Java compiler from within a Java class. The API docs will tell you all you need to know.

jwenting 1,905 duckman Team Colleague

Yep. It's a great game. I played it for 200 hours before even starting the first mission.

Rather the reverse. Morrowind is Elder Scrolls 3 ;)
Great RPG indeed, but like everything it gets repetitive after a while.

Total Annihillation was great, and I still install it once in a while 10 years later.
Diablo 2 has already been mentioned.
Magic: the Gathering is a classic (and I mean the cardgame, not the computer game which sucked).

But chess is the greatest game of all time.

jwenting 1,905 duckman Team Colleague

hmm, "computers are my life, sadly" is missing.
I'm starting to hate the things, but there's no avoiding them when you work as a software engineer...

jwenting 1,905 duckman Team Colleague

You're "nearly learnt C++"?
WOW, never heard anyone claim to know almost everything there is to know about C++. And that includes gurus with 10-15 years experience in the language and several books to their name.

If you're THAT good in C++ you should be able to pick up any programming language by reading any book about it and just experimenting.
If you think even the basic Java tutorials are too advanced for you you might want to concentrate on learning C++ a bit better first, why leave a job uncompleted before moving on to the next one?

jwenting 1,905 duckman Team Colleague

no use for Runtime (which seems to be WAY WAY overused by people in lue of native solutions that are a lot easier once you get your head around to you being working in Java rather than a scripting language). They're just Java classes...

jwenting 1,905 duckman Team Colleague

I've pretty much decided my next project after I submit my SCJD work will be to create a complete IRC server in Java.
I might even release the source after it's done, but it will likely take a few years until it's fully functional unless I bring others on board to assist in the project.

jwenting 1,905 duckman Team Colleague

Why would you need that at all?

jwenting 1,905 duckman Team Colleague

you need to include each jar individually, just like when using the commandline.

That's how it always works in Java, jars ARE directories on your classpath.

jwenting 1,905 duckman Team Colleague

it's called collateral damage. I'd rather be executed as an innocent person than spend 20 years in prison as an innocent person and then maybe be set free into a world that still brands me as an ex-con convicted of some heinous crime.
Even the hundred million you may get from a court in compensation after you sue the state for wrongfully convicting you isn't going to make anyone look at you without suspicion.

jwenting 1,905 duckman Team Colleague

project properties->build path->add external jar
or something like that.

jwenting 1,905 duckman Team Colleague

It is an economic alternative to life inprisonment. If properly handled (meaning public executions rather than doing it in secret as is now often the case in many countries) it can also act as a powerful deterrent for would be criminals.

So yes, I'm in favour of it though not as a penalty for everything. It should be reserved for those cases where the alternative would have been a life sentence (or the equivalent, some countries don't lock people up for more than a specific time for economic reasons, then let them loose on society once more to commit more crimes).

And there should not be the decades long appeals process that there is now in the US for example.
The old addage, charge them at noon, convict them at teatime, hang them at dawn, works quite well.

jwenting 1,905 duckman Team Colleague

Java will detect your machine's IP address(es) automatically.

jwenting 1,905 duckman Team Colleague

not something you'd use JSP for anyway. A background process started from your crontab would be the most logical choice, or alternatively an autostarting servlet running a background thread if the functionality is an integral part of a web application.

jwenting 1,905 duckman Team Colleague

Follow the links on http://java.sun.com
I don't think you can download them though, they're in the form of web pages.

jwenting 1,905 duckman Team Colleague

unplug the network cable...

jwenting 1,905 duckman Team Colleague

What? The principles of Net Neutrality? Or a Congressional Law fumbling around with our ISPs?

Government intervention in what companies and people can and cannot do in their normal activities.

I'm not talking here about criminal activity of course. If you threaten someone's safety or take his property that's what the police are there for.
But as it is there's way too much government intervention in everyday life as it is, let's not try to make it even worse by allowing the government to determine what we can and cannot do on the internet and if we can do it how quickly we can do it.

What if the government had that right (like it does in China, Cuba, North Korea) and decides it doesn't like Dani? They'd just tell all ISPs and other companies involved in the internet to stop relaying traffic to and from Daniweb, and for all purposes Daniweb would no longer exist for all subjects of that country.
Think that is not what happens? Think again, that's exactly what happens in many countries.
Could it be worse? Yes it could. The government could next order all ISPs and routing providers to give them information on anyone trying to access Daniweb, and send the police to have a nice little chat with them (or just arrest them or make them disappear, as happens in for example China).

That's the natural end result of the government having the power to determine what …

jwenting 1,905 duckman Team Colleague

Well said Alex. We're not a communist society in which Big Brother determines by decree what we can think and do.
Giving the government ever more and more power over the activities of people and companies brings that scenario ever closer though.

It also opens up a massive can of worms. It would allow for people to sue ISPs if they think their websites aren't given enough bandwidth, whether it's true or not.
Especially in a littigationhappy society like the current USA that's a major concern.

jwenting 1,905 duckman Team Colleague

You're going to be reading files over an HTTP (most likely) network connection.
That should give you a strong indication of the direction you want to look at.

There is a nice book that was written about 2 years ago in which the authors create (among other things) a download manager using Java.
It's called "The Art of Java", would be a good idea to order that book and read it.
Contains a lot of nice ideas and examples of what Java can do (and most people think it can't).

jwenting 1,905 duckman Team Colleague

depending on what you mean by "send", of course.
That's pretty much how 99% of network protocols work (simplified of course, the actual stuff that's sent is a lot more complex in many cases).

jwenting 1,905 duckman Team Colleague

you're trying to access an instance method like it were a static method, that's not allowed.

That entire ScheduleMenu class seems rather out of place in a Swing application anyway.

jwenting 1,905 duckman Team Colleague

yeah, both have String in them ;)

jwenting 1,905 duckman Team Colleague

always use the absolute minimum scope for variables that you can. NEVER EVER use globals unless there's really no way around it (and if there isn't your design is likely flawed).

jwenting 1,905 duckman Team Colleague

1998 Ford Fiesta 1.3.
Small, cheap in taxes and insurance, and reasonably cheap (well, compared to larger cars I could afford...) in maintenance and gas.

jwenting 1,905 duckman Team Colleague

moveon is an ultraleft organisation that would have the government install active censorship of your internet activity not dissimilar to what the government of countries like Cuba and North Korea do.

That, combined with the communist, anti-business, ranting tone of your post says enough about the validity of it.

jwenting 1,905 duckman Team Colleague

But shouldn't certain things be regulated by the government? Thats what this is all about. I think this should be regulated by the government. If we don't do something now, this can really get out of hand later.

No, everything that you let the government regulate is a reduction of your freedom.

What if the government doesn't want you to see websites critical to itself, they could (if you let the government regulate what ISPs can pass to their customers) just tell ISPs to block those sites.

Think that's farfetched? Just look at China, North Korea, Vietnam, Cuba.
Or supposedly democratic countries like France which also have such restrictions (though to a lesser degree).

No, let the free market handle it. If people don't want their internet access blocked by their ISP they'll switch to another one.
Heck, I did that once already. That ISP no longer exists...
When Yahoo tried to steal the content users had put on their free hosting service (by suddenly changing the TOS to read that everything you uploaded there became the property of Yahoo) over a third of their subscribers cleaned out their accounts and left in under a week. A week later that policy change was reversed.

jwenting 1,905 duckman Team Colleague

"illegal start of expression" is almost always the result of either a typo or of forgetting some braces.

jwenting 1,905 duckman Team Colleague

Vector is an old legacy class that's been replaced by far more efficient mechanisms.
Its main problem is its poor performance, using ArrayList can under circumstances give you an order of magnitude higher speed.

StringTokenizer is similar. Use the split() method (for example, there are other mechanisms depending on what you are trying to achieve, like indexOf() and substring()) on String instead.

jwenting 1,905 duckman Team Colleague

In a free market, the market will speak.

If ISPs are liable for damages or prosecution if their users have access to certain sites (and they are, especially when it comes to sites promoting or enabling criminal activity) I see nothing wrong with ISPs having the option to deny their users access to those sites.

That's the flipside of the coin. Everyone is always speaking about the "evil companies" restricting their customers, but those customers make it so that such becomes inevitable if the company isn't to break the law.

jwenting 1,905 duckman Team Colleague

ah, another online petition. One of the million or so started each month, and ignored just as quickly.

I could start a petition to ban petitions, even that would get votes quickly as there are a lot of people who'll sign anything without even reading it.

jwenting 1,905 duckman Team Colleague

Don't use Writers and Readers. They work ONLY on line input, which means you'll always get a line terminator.

jwenting 1,905 duckman Team Colleague

you are really have a free time,but i don't have to answer people like you

yet you do expect answers from us to your ramblings in incomprehensible "language".

If you're too lazy to use human language properly and at least try to communicate clearly in it, I see no reason to expect you to even try to communicate clearly with computers at all.
Remember that computers require you to be far more precise still in the way you address them, there is hardly anything like slang in programming languages for example.

jwenting 1,905 duckman Team Colleague

Don't stare blindly at what diagrams to use. Use them when you see the need.

You're falling into the trap UML sets for the unwary (which sadly includes many "architects" and "managers") which is to think it's a goal in itself, maybe even more important than the final code.
It's not, it's merely a tool to help you visualise and communicate your design choices more clearly than the written word alone can do.

jwenting 1,905 duckman Team Colleague

Readers and Writers work only on line based character data, so plain text files.
For anything else, you MUST use Streams.

jwenting 1,905 duckman Team Colleague

and we think this is not a suitable place to use "language" meant for mobile phone text messaging among 10 year old kids.

As we're the ones you're asking your questions, keep that in mind.

jwenting 1,905 duckman Team Colleague

yeah, what is the question?

And no, the Date class is NOT deprecated. It's just had its scope reduced to the task of tracking time, which is what it should have been in the first place.

jwenting 1,905 duckman Team Colleague

buy low, sell high, don't trust "investment experts" to give you useful advise (they know little more than you do).
Working the stock market is 90% gut feelings, 10% keeping up with business information relating to the companies you're interested in.

jwenting 1,905 duckman Team Colleague

EE is a good site. They went commercial a while ago which is sad but understandable given the cost of running a major site like that.

jwenting 1,905 duckman Team Colleague

yes.

jwenting 1,905 duckman Team Colleague

I couldn't find anyone by the name of 'u' in the memberlist?

nor could I find anyone with the name "plz" :cheesy:

jwenting 1,905 duckman Team Colleague

I'd rather think some 2-3ft higher than that :)

jwenting 1,905 duckman Team Colleague

ever heard about classpath? Read up on that, you haven't grasped how to configure your system still.

The compiler works fine, as you get a classfile. But you have to tell the runtime where to find it (and the compiler as well when you want to use it from another source).

jwenting 1,905 duckman Team Colleague

you mean the GEF?

I've tried it, prefer to write code by hand.
Easier, faster, and better code as a result.

For prototyping Swing I use my trusty JBuilder 2005 Developer for the basic layout, then complete that by hand.

jwenting 1,905 duckman Team Colleague

I don't know, I don't visit dealers and they don't advertise in the papers ;)

jwenting 1,905 duckman Team Colleague

try Class.getResourceAsStream to return the content as an InputStream.

jwenting 1,905 duckman Team Colleague

I installed the JDK correctly and the javac is in the bin but my compuer isn't reading the program right

If you had installed it correctly it would work...

jwenting 1,905 duckman Team Colleague

most database engines will allow you to create a database with a single command or by filling out a single dialog box.
Can't get much easier than that.

jwenting 1,905 duckman Team Colleague

Walked past a bar in Amsterdam saturday who had a large advertisement in the window mentioning a price of €1.10 for beer.
Didn't mention the dose, so I'll assume it's a regular beerglass which would be 0.2 or 0.25 (depending on brand) liter.