jwenting 1,905 duckman Team Colleague

sure it's taxed. But if you leave cash on the table, do you really expect it all to be declared?
Of course not, the bulk of it will not be declared.

jwenting 1,905 duckman Team Colleague

So, nice assignment. Now go ahead and do it. We're NOT your homework service.

jwenting 1,905 duckman Team Colleague

and remember that waiter is serving 4 more tables at the same time (roughly) so he's getting not $60 an hour (tax free...) on top of his wages, but $300.

jwenting 1,905 duckman Team Colleague

One way to define "best" is through sales. The game that sales the most copies must obviously be the best. If it was a lousy game than very few people would buy it.

Not really. That would indicate the best marketing department, not necessarilly the best product :)

jwenting 1,905 duckman Team Colleague

just put books like "numerical recipes in C++" on the required reading list.
Now that's not the best book for the quality of the code or for readability, but it's thick so must be important :)

jwenting 1,905 duckman Team Colleague

it should, but the code you posted can't be the code you're using as it won't ever compile.
Most likely therefore your actual code is different from the code you show here and does something else.

jwenting 1,905 duckman Team Colleague

well said, Vernon. Exactly my point.

Tipping used to be an incentive for staff to go beyond the expected when it came to providing service. If you went the extra mile you got a reward.
Now it's seen as an entitlement, and they get angry when they don't get piles of it despite doing shoddy (if any) work.

jwenting 1,905 duckman Team Colleague

2 one day flies responding to the same year old nonsense post. Well done, kids, you have very promising careers flipping burgers ahead of you.

jwenting 1,905 duckman Team Colleague

or (if you insist to use something that old, which is idiotic in 99% of cases, very few people have to maintain software that old and those that do know how to do it) use virtualisation to run an old operating system in for example VirtualBox or VMWare.

jwenting 1,905 duckman Team Colleague

My sister used to wait tables for a bit in highschool. That place has a "tip amount" on the bills.
That amount was pooled among the entire staff and split according to pay grade.
So at mimimum wage she got a pittance out of it while the CEO got the bulk.

jwenting 1,905 duckman Team Colleague

local shops typically don't build laptops :)

jwenting 1,905 duckman Team Colleague

open the file in the correct mode, place file pointer correctly, and write :)

jwenting 1,905 duckman Team Colleague

open the file for append, not overwrite.

jwenting 1,905 duckman Team Colleague

script it.
Way better approach. Other programs will need other libraries. Some probably need incompatible versions from others.
And if you distribute your program, you can distribute the libraries (if you're licensed to do so) and script so others can run it without having to mess with their system configuration (which they may not know how to do, not be allowed to do, or like many professionals may not want to do).

jwenting 1,905 duckman Team Colleague

THINK

jwenting 1,905 duckman Team Colleague

http://www.amazon.com there you go, the link where you can get the best book, whatever it may be.

jwenting 1,905 duckman Team Colleague

no doubt your school has a network, no doubt they can arrange for you to have a server on that network for the duration where you and your fellow schoolkids can access that application from that network.

jwenting 1,905 duckman Team Colleague

you don't, normally. JSP is overall a high end corporate technology, where people don't expect freebies and are quite willing to pay for quality service.

jwenting 1,905 duckman Team Colleague
java -classpath .;mysql-connector-java-3.1.12-bin.jar MyDatabaseProgramjava -classpath mysql-connector-java-3.1.12-bin.jar MyDatabaseProgram

would actually be required :)

jwenting 1,905 duckman Team Colleague

flush the stream, might do a lot of good :)

jwenting 1,905 duckman Team Colleague

the same is true for all development work :)
I however call everything pre-implementation phase (and parts during implementation) to be design phase.
Design is far more than writing some tech document, the concept art, story, etc. all belong in it.

jwenting 1,905 duckman Team Colleague

Sony, Toshiba, HP, Dell, Compaq, Lenovo, take your pick.
All the major brands offer products that fit your price range with decent enough specs and good quality.

jwenting 1,905 duckman Team Colleague

or just read a book on de design of logic circuits, like you should have been told to get on your required reading list.

jwenting 1,905 duckman Team Colleague

the openConnection method doesn't read the content of the stream, it just opens the stream. So of course it doesn't wait for "the page to be loaded".

jwenting 1,905 duckman Team Colleague

Pink Floyd's creations are meant to be seen as a whole, not individual tracks.
The band wants to stress and enforce that point, not screw the record company. They're understandibly proud of their compositions and don't want them broken up for scrap.

jwenting 1,905 duckman Team Colleague

So the trademark office didn't let themselves be bullied and/or bribed by Google.
Interesting development, maybe the powermad Google boys are finally being shown they're not rulers of the world quite yet.

jwenting 1,905 duckman Team Colleague

if you use properly licensed software, the only risk is that it won't all work together with older products.

If you're using pirated software, you deserve all the virusses and nastiness you may get and more.

jwenting 1,905 duckman Team Colleague

If you have a valid license key, just activate it.
If you don't, you're using a pirated copy whether you claim to have a real CD or not, and deserve no help (in fact you'd deserve a major spanking).

jwenting 1,905 duckman Team Colleague

What does that have to do with tipping? That is the money owed the establishment. You buy a book, you pay their price. You buy a meal, you pay their price. It's a business.

the establishment employs their staff, it's their job to cover their pay from the sale of goods.
If they choose not to do so, they should be open about that and turn the place into a self-service restaurant instead and ask customers to bring their own serving staff.

I buy a book, I'm not expected to pay the cashier separately, or am I? Or the person refilling the shelves after I'm gone?
So why should I pay the waiter in a restaurant? Same thing.

You've obviously never been a waiter in a halfway decent restaurant or better. If you think it's easy, and does not need training, you are deluded. When done right, waiting tables is not as easy as you think. Ask your waiter next time you go for a good sit down meal. And I'm not talking about at Denny's.

Yes, WHEN DONE RIGHT!. And when done right it deserves a tip.
Sadly there's no incentive for staff to do it right if they're getting the same tip (because it's ingrained in the culture to the point the amount is automatically added to the bill even) whether they do it right or not.
If I get worse service in a restaurant offering a $50 a serving steak and …

jwenting 1,905 duckman Team Colleague

Your understanding of the industry is abysmal. People in service industries provide a service over and above the business they work in. And in the case of wait staff, their salaries are below minimum wage because they do receive tips. They are working for you as well as the restaurant. The bill is not for service, it's for the food.
So by deciding 5-10% is normal you are screwing staff. That level is generally reserved for sub-par service.

No, it isn't. If they expect to be paid, they should provide decent service.
For sub-par service, I don't pay.
And yes, I am not in the US and when there do cross out a LOT of tip lines on bills.
It's a hidden cost not agreed upon in the contract between me and the service provider which is the employer of the person providing the service, the restaurant (or whatever).
If that employee is receiving below minimum wages, at least here, their employer is breaking the law and the employee can and should report them to authorities which will lead to very hefty fines and in severe cases revocation of business licenses and even jail time for the employer.

I will decide when and how much to tip, and base that solely on the level of service provided.
If I get exceptional service I migth tip $1 for a $1.50 drink. If I get piss poor service there's no tip and a complaint to …

jwenting 1,905 duckman Team Colleague

RTF is text, no conversion needed.

jwenting 1,905 duckman Team Colleague

So that's why the quality of newly graduated programmers is so poor.
They're now handing out exam assignments that would be considered too simplistic for a 1st week homework assignment at the beginning of a course.

jwenting 1,905 duckman Team Colleague

if you want your site to be maintainable, you need a proper architecture.
Embedding Java code in JSP isn't a proper architecture, a well designed MVC model goes a long way.

In general, it can indeed be said that sites not employing an MVC model won't work.
They're poorly designed, poorly programmed, and will as a result have many problems that will lead to a lot of downtime and user frustration.

jwenting 1,905 duckman Team Colleague

Any one expecting any specific amount in tipping money independent of service rendered deserves none at all.
I will therefore never give a tip unless the service is not only satisfactory but examplary, and then tip depending on circumstances.
20% is ridiculous, but so is (often) 15%. 5-10% comes first, and if there's a category "tip" included on the bill with a filled in amount when I get it, not only is that crossed out and the amount I pay reduced accordingly, they'll get nothing whatsoever.

jwenting 1,905 duckman Team Colleague

add the proper jars to the classpath of the application you're trying to run, the system classpath should hardly ever be used at all.

Not that you're using it now, you're adding the jar to the system PATH, not the CLASSPATH.

jwenting 1,905 duckman Team Colleague

try a search engine. There's tons of resources explaining exactly what bubble sort is as well as what a class is.
Combine the two and you're good to go.

jwenting 1,905 duckman Team Colleague

I see more static methods than main, I usually just discard the code (maybe reusing snippets here and there to put into other methods).

jwenting 1,905 duckman Team Colleague

you need a method that takes an array and produces a String, so effectively the reverse of your original method.

This no doubt is what your teacher wants you to create!

And oh, using all static methods in a single class like that is considered Very Bad (tm) by professionals.
Were such code to arrive on my desk for review it would be instantly rejected.

MaxWildly commented: He help me see the answer in a clear way. +1
jwenting 1,905 duckman Team Colleague

seems to work just fine. The only thing you've not yet figured out is how to print the array in such a way you actually see what's in it.
That shouldn't be too hard :)

And then there's learning to write proper object oriented code of course.

jwenting 1,905 duckman Team Colleague

Or you can drive your SUV to the cinema and just leave the motor runnning for the entire movie. That'll teach those environment-hippies!

hmm, the gas tank would run dry before the break though :)
Other than that, excellent suggestion ;)

jwenting 1,905 duckman Team Colleague

I bet you think VB programmers are inferior to you too. :icon_rolleyes:

I think it is a VB programmer who doesn't understand XNA and tries to hide that by means of vitriolic comments about how bad it is, giving it an excuse to not actually have to try to come to terms with it ;)

jwenting 1,905 duckman Team Colleague

you did compile it first?

Also, that web.xml looks a tad fishy. Are you sure you're not getting deployment errors?

jwenting 1,905 duckman Team Colleague

sounds like he has found some java code somewhere that does something and now wants us to give him C code for an ftp server instead.

jwenting 1,905 duckman Team Colleague

yup, C# is better.
That way there's less people posting homework questions here :)

Long answer: IF all you're concerned about is deploying to Windows, using C# would be more appropriate than choosing Java, as it's much more tightly integrated with the operating system.
But it's not "a better language" whatever that means, neither is "better" in general than the other.

jwenting 1,905 duckman Team Colleague

start by writing a good design rather than randomly quoting some wild ideas and hacking code together.

jwenting 1,905 duckman Team Colleague

you did compile everything and deploy it correctly, did you? If you didn't, do that first (and read the manuals and tutorials to figure out how, don't ask for a step by step explanation here please).

jwenting 1,905 duckman Team Colleague

in case you're too stupid to get the message yet: DO YOUR OWN HOMEWORK!

jwenting 1,905 duckman Team Colleague

you're not a student, you're just a lazy schoolkid.
If you'd paid attention in class and done your homework until now you'd have no problem doing this yourself.
So if you can't do it, you only have yourself to blame and deserve no help from us or anyone else.

jwenting 1,905 duckman Team Colleague

do your own math homework, kiddo

raymyster commented: what a loser +0
Salem commented: What a winner! +19
Rashakil Fol commented: nice but you forgot to bleep out the name! +7
jwenting 1,905 duckman Team Colleague

Ah, it's even better! They got a small detail wrong there and that's assuming it's electrons that go back and forth at all.
In reality electrons hardly move at all, they just pass energy between themselves.
So all that flows is something quite eathereal, impossible to catch on camera except by proxy (and do you trust proxies?).
So in fact you're paying for an illusion, the illusion that you're getting something.
And your electrical devices happily power themselves off that same illusion, the illusion that they're being powered!