Richard, don't do people's homework for them.
You're trying to help but are in fact preventing people from ever learning to do their own work...
Richard, don't do people's homework for them.
You're trying to help but are in fact preventing people from ever learning to do their own work...
You forget some simple facts of economics:
1) people want to be entertained and are prepared to pay big money for that.
2) the only thing more profitable than boorish entertainment is sex
3) no government program that takes longer to turn a profit for the politicians voting for it than the time to the next election will ever receive funding in a democracy.
Technology is changing all the time.
It's just that you've been living in an era in which it suddenly exploded, and we're now entering an era of consolidation.
That's a good thing as it will mean less useless crap being hyped as the best thing since sliced bread.
That explosion of technology was in fact brought about by an unprecedented period of extreme military tension and competition between NATO and the USSR, directly following WW2 in which innovation was rampant. Never before had technological progress been so rapid as during the period roughly 1940-1980.
That period is now past and we're slowing down slowly to a more leasurely pace, until the next big surge, likely also brought about by a large scale war (which I suspect will involve China in a big way, as China is fast replacing Europe and the US as the major economic and military power on the planet).
That conflict may well see forcefield technology, hypersonic propulsion systems, electrooptical computers, cheap spaceflight, etc. etc. all take off in ways we cannot yet imagine, …
nah, CDRs cost pennies :evil:
how to get started using an array:
int[] arr = new int[10000];
Any idea of the plan to collect a million AOL CDs and dump them on the doorstep of their corporate headquarters succeeded?
Windows reads the time from the system so if one is wrong so is the other.
try the API docs. Everything you need to know is there.
We're not here to be a walking index into the core documentation.
what EXACTLY is your commandline (all spacing, case sensitive, etc. etc.)?
Eclipse has a built in compiler.
Depending on the version it will support Java 1.4 or 5.0.
Are you looking for another editor or do you have reason to be unhappy with the compiler Eclipse uses (in which case you will need to change to another editor as well because you can't change the compiler in Eclipse)?
compiler flags are case sensitive and need to appear BEFORE any files you are compiling.
learn the simple truth tables by heart!
OR |true |false
----------------
true |true |true
false|true |false
AND |true |false
----------------
true |true |false
false|false|false
XOR |true |false
----------------
true |false|true
false|true |false
Get O'Reilly's Java Network Programming book, it has a webserver as one of the easier examples :)
1) see the servlet API. You're likely looking at retrieving a large stream of data as part of a post request.
2) think about using the built-in XML support of the Java core API, or else to use a 3rd party XML parser like Xerces.
IE works and supports the W3 standards. I've tried FF and found it clunky in places and found the CSS and Javascript support lacking (tested it with a moderately complex piece of CSS positioning code, verified as CSS2 compliant by the W3 validator and working perfectly in IE and it simply failed to do anything with it, poor performance for a browser that claims to support the standards better than IE or anything else out there).
The main thing people use as a "reason" to "hate" IE is that it supports custom extensions to for example CSS, which is another mistake by those people.
IE supports things that were proposals to the standards bodies at the time IE was released. Not all those proposals made it (yet?), and Microsoft leaves them in to provide backwards compatibility.
All browser makers do the same (just look at the very bad things you can do with Netscape...).
No, I've not been in the armed forces.
But that't not of my own choise. If I hadn't been disqualified on medical grounds I'd likely have been a professional officer at the moment (or RIFfed, given the state of our armed forces or what passes for them).
With terrorists there are no better ways than to kill them all. They can't be reasoned with, they can't be "corrected" by locking them up or forcing them to undergo psychiatric treatment, and they won't stop unless they kill you first.
I don't agree with stooping to their level and indiscriminately killing anyone and everyone in their societies, but I do hold that our own safety is always more important than that of any civilian in a society that harbours and shields terrorists.
And of course them sending veritable floods of CDs all over the world, including to countries where they don't even operate (don't ask me why).
That too may have declined, at least I've not seen them here (or maybe they've become smart and realised they don't operate in this country).
But Troy has it right. Their non-standard service causing immense trouble for communication, the general morosity of their members (to the point where "aol!" became equivalent with "watch out, idiot in the room"), that's the reasons right there.
It'll probably take a generation or more for it to wear off.
none.
Linux is not suitable for desktop use unless you have a) a very serious understanding of Unix in general and Linux in particular, b) old hardware (10+ years) to make pretty sure it will all work with Linux, AND c) no requirements to run modern highend software like most games, photoshop, etc. etc.
what the hell are you ranting about?
You seriously think just cowering in abject fear of the outside world (a.k.a. isolationism) is better than taking an active position and trying to change the world to stamp out those who would threaten you as a nation?
Do you seriously believe the hardline leftwing view that the US caused all the terrorism in the world and had they just not invaded Iraq 9/11 would not have happened (yes, that has been claimed by people voicing the same idiotic arguments you use)?
and what would you call an "improvement"?
Not the way Linux calls itself "better" I hope, having to constantly juggle with shared library version conflicts, manual editing of configuration files to get even the most basic things to work, etc. etc.
Windows has a pretty good user experience as it is, I'd rather hope they are very cautious about making more than minor changes to it.
and of course use packages and proper class naming (which you don't seem to be doing at the moment)...
make sure there's an empty line after the mainclass argument.
This is required!
what I sometimes do is create a prototype in the GUI builder of JBuilder to get somewhere towards the basic layout and then heavily modify it by hand.
Especially easy for getting the core components of the screen laid out like the menubar, toolbar, and statusbar, which are fairly static :)
I decided on this architecture indeed to allow for future flexibility.
In the context of the immediate requirements in this case a single class would have sufficed.
As to Graphics, there is likely one implementation per JVM, but remember there are many JVMs for different operating systems (and often several for a single OS).
It's also conceivable for Sun to have provided different Graphics implementations for a single JVM, for example one that uses hardware accelleration and one that doesn't, the actual one to use getting chosen depending on the hardware capabilities.
In each case, the abstract class provides certain functionality which will always have identical coding, thus saving work as compared to implementing an interface (if the work is trivial it may depending on the system under development make more sense to use an interface anyway, if the design paradigm calls for it).
Osama was being forgotten after others in Afghanistan succeeded to drive out the Soviets and depose of the communist government.
He then supported those who were the best equipped opposition to those people, which happened to be the ultra orthodox Taliban.
Being anti-US and a religious nutcase was politically expedient for him at that time and has since helped him gain recruits and followers in communist and fanatical Muslim terrorist groups.
His personal fortune and the Taliban's (and his own no doubt) connections in the international arms trade helped him gain a key role as an organiser and supporter of those groups, to the point where he can now to a degree dictate their policies.
That is what Al Qaeda is, not a single organisation but rather a diffuse network of interlinked and mutually supportive terrorist cells with Osama and his inner circle controlling to some degree all of them and liaising between them.
Saddam never had anything specifically against the US until the point where the US beat the hell out of him (with support from others of course) after Saddam's invasion of Kuwait.
one word: jealousy.
Many people can't stand it that others have success when they themselves can't hold a steady job (or at least not one where they make a few million off their own hard work, often they don't work hard of course).
Stanislaw, Emilia Earhart went missing over the mid Pacific, almost halfway around the world from Bermuda (and no, she didn't have the fuel to get there).
And aliens have never been found there or anywhere (unless it be some illegal aliens from Mexico or Cuba who got lost).
Get a good book and use that.
Good books are:
Head First Java (2nd edition) by Kathy Sierra and Bert Bates
Agile Java by Jeff Langr
Loops are so basic you should pick them up easily from any tutorial, and not need someone else to write them out for you.
no, you'd do
AbstractBase a = new ConcreteBaseImplementation c();
This would create a new concrete instance which is used as an instance of the abstract class.
For example in my SCJD assignment I have the following code to initialise the database:
public void activateServer(ActionEvent e) {
/*
* Create and open database file, create lockmanager
*/
DataFile file = new BSDataFile(dataFileName.getText());
boolean success = file.open();
if (!success) {
JOptionPane.showMessageDialog(this, file.getMessages(true), "Error opening database", JOptionPane.ERROR_MESSAGE);
return;
}
LockManager manager = new LockManager();
DBRemote remote = new RemoteData(new Data(file, manager));
Registry rmiRegistry = null;
try {
rmiRegistry = LocateRegistry.getRegistry(Registry.REGISTRY_PORT);
} catch (RemoteException ex) {
// registry didn't exist yet, so create it
try {
rmiRegistry = LocateRegistry.createRegistry(Registry.
REGISTRY_PORT);
rmiRegistry.rebind("BSDatabaseService", remote);
} catch (RemoteException rex) {
Logger.getLogger("suncertify.server.bs").severe(
"Error creating RMI registry: " + rex.getMessage());
}
}
dataFileName.setEditable(false);
modeSwitch.setEnabled(false);
modeSwitch.setVisible(false);
}
DataFile is an abstract baseclass for the actual database files offering functions to open and close the file.
BSDataFile is the implementation class which provides the actual record reading, writing, etc. functionality.
It works exactly the same as writing to interfaces where you define a variable as being of the interface type and then instantiate a class implementing that interface.
from Wikipedia:
" If you zoom in close enough you will notice that the moon is in fact, made of cheese"
Hate is a negative emotion, it's totally non-productive.
the best way to see things is to actually go there and see for yourself...
Having travelled to over 25 countries I can tell I want to see more of the world.
Had to do some thinking as I visited some of these before they broke apart...
UK
Belgium
France
Spain
Denmark
Germany
Austria
Italy
Hungary
Czech republic
Slovakia
Slovenia
Croatia
Romania
Turkey
Russia
Ukraine
Kazakhstan
Azerbaidjan
Georgia
Armenia
Uzbekistan
Morocco
Tunisia
USA
Canada
Netherlands Antilles
Nice name.
Everyone knew (or could have known) that Longhorn would not be the name of the product.
It's a project name only, and probably still is.
Cain, you can never tell who is a "future terrorist".
Maybe you'll one day come to the conclusion that the only way to get your point across is to blow up something, does that mean noone should ever hire you for a job?
Bin Laden didn't receive any funding from the west (at least directly, organisations he was involved with during the liberation war in Afghanistan agains the Soviet invasion may have).
He doesn't need such funding as he has quite a bit of money of his own (estimated several hundred million, probably less now).
Saddam got funded by everyone at some point, first because he was opposed to the fanatics in Iran (who WERE funding terrorism at that time and still are today), later because there was money in it (oil sales to Russia, France, China, North Korea, etc.).
As a nation you support other nations (and groups in nations) that share your interests.
You can't tell what will happen with those nations or groups years or decades later.
I'm sure the Soviets would never have helped the Chinese in Korea if they'd known those same Chinese would a few years later use that equipment and training to attack the USSR in order to gain access to the mines and oilfields in Siberia (a war that lasted for over 20 years yet was never reported in the west despite involving at its height tens of thousands of troops on either side (making …
yup, can be done easily.
No, paint() gets passed an instance of a subclass of Graphics as its argument.
This is created internally by the JVM for the actual client platform (and is most likely a big chunk of JNI code linking directly into the operating system screen painting routines).
If you notice examples, you NEVER call paint() or other methods requiring a Graphics instance directly (or if you do you do so from a method that gets passed one and does itself not get called directly).
Never tell a European that the Euro is a good thing (unless he's the central bank president or a politician).
VA Java was terrible and has at last met its overdue demise a few years ago with the release of WSAD.
JBuilder is the ONLY one I've used in 8 years of working with Java that produces code that's close to being passably human readable (and of course JBuilder is the only one that offers true two-way development).
All that said, the best GUIs are created by hand. GUI builders are nice for prototyping but as soon as things get complicated (like components that need to be dynamically shown as a function of other components or options) they fail.
And the code they produce is rarely more than marginally efficient.
There is no difference in Java (in other languages there may be).
Just be consistent in your use in order to avoid confusing people.
The second syntax is preferred by many people because it more accurately describes what Java does under the hood (in Java an array of whatever is actually an object of an array type) but the first more closely describes what the user of the array expects, which is to see an array of objects and is preferred by a considerable minority of people.
Sun themselves uses both in different publications :)
In the JLS James Gossling talks about String[] arr, in the Java coding style guidelines I find Object arr[].
In fact, in that same document the authors state explicitly that that is the preferred way (section 8.1.3).
http://www.sun.com/software/sundev/whitepapers/java-style.pdf
But I've seen both used in coding style guides for different projects (and there are other things in the Sun guidelines I don't agree with).
8.1.3 Array declarations
The brackets “[] in array declarations should immediately follow the array name, not the type. The exception
is for method return values, where there is no separate name; in this case the brackets immediately
follow the type:
char[] buf; // WRONG
char buf[]; // RIGHT
String[] getNames() { // RIGHT, method return value
There should never be a space before the opening bracket “[.
Graphics is an abstract class, it's designed specifically for subclassing.
Subclasses of Graphics will provide the actual implementation of the method, and whereever you see a Graphics instance returned from a method what you're actually getting is an instance of a Graphics subclass.
Make an executable jar or a jnlp.
But anyone with an installed JRE can run a Java application if they know the name of the class that contains the main method (or you provide a batchfile or other startup script for their OS).
If you had tried to learn to use the compiler and runtime instead of which button to press you'd have known that.
Nukes are inefficient over large areas. Aerial dispersion of persistent nerve agent is cheaper and more effective.
Luckily the terrorists this time blew it :cheesy: and noone was seriously hurt.
The French Franc was replaced by the French Mark, which is officially known as the "Euro".
Francs are no longer accepted tender anywhere in the world (except maybe on some of the French colonies in the Pacific, but I know those in the Caribbean have switched to the Euro).
Some banks may still trade Francs for Euros, but if so it's bound to stop soon as the term for banks to turn them in for Euros with the central bank either is set to run out soon or has already run out.
The same is true for all the European Franco/German colonies (officially called Euro countries).
Whatever idea you can come up with, there's always someone who'll believe it (in fact there's always someone who'll believe something that's even further out there).
I doubt the people that made this site believe the stuff, it's too obviously a jab at conspiracy theories :)
not enough.
You'd have to take him there without his ever having the impression that it's a hoax (you know the Apollo astronauts never left the planet, instead they were taken to a secret base where they were told they were on the moon? They even believed it (or maybe they were part of the conspiracy)).
Of all the people I've worked with over the years very few have a degree in computer sciences or related fields.
Most have degrees in physics, mathematics, or chemistry.
A few have more esoteric degrees like biology and business economics.
The few CS grads I have encountered professionaly have often left a less than favourable impression because of their ivory tower attitude towards software development (they never write a line of code, but typically dictate massive and completely unworkable architectures that are beauties of theoretical design but impossible to use).
JBuilder does an excellent job. Of all the GUI builders I've used (and I've used (or rather tested) quite a few) it does the best job.
The code it creates is actually human readable, and it does a remarkable job of importing manually written code as well (even if it doesn't conform to its paradigms).
The current versions have automated code formatting options which correct things like indentation and spacing, block editing options to change say the name of a local variable instantly (select the block, edit the name, and all other occurrances in that block change as well), etc.
Funny :)
And a very interesting way to deliberately misinterpret a statement made to mean something else entirely.
Read up on boolean logic. The fundamentals are simple but you do need a thorough understanding, more than a short summary can provide.
I guess he doesn't know what he knows, therefore doesn't know whether he wants to start :cheesy:
VI baby, VI :mrgreen: :cheesy::cool: (though I use JBuilder myself, but not before I could do everything by hand that JBuilder can do for me).
And for Mercer's sake get a better book :)
HeadFirst Java 2nd edition is the one to get.