jwenting 1,905 duckman Team Colleague

And with a List it'd do the same, as it creates the Collection based on the result of a database query.
Instead of trying to force something the wrong way, ensure that those database queries yield the results you need.

And no, that's not related to the "insert order in table". It's related to the SQL/JPQL you use to retrieve the data from the table.

Time to learn how to properly use your tools rather than floundering about, trying random things, and digging yourself an ever deeper hole.

guideseeq commented: Only theory, no practical reply, no reasoning +0
jwenting 1,905 duckman Team Colleague

(40+20+20+20)/4 = 25.

Which is probably your end score (and that's generous) if you can't even do this yourself.

jwenting 1,905 duckman Team Colleague

no, C++ knows nothing about fonts.
Specific user interface APIs probably will. See their documentation.

jwenting 1,905 duckman Team Colleague

impossible to say, but sure does change the game... And yes, you can't force Hibernate to use a specific implementation class.
And usually what you're getting back from a query would be either a Collection or a List, if I remember correctly.

jwenting 1,905 duckman Team Colleague

hmm, sending unrepentent homework kiddos on tracks that leads them to failure is exactly what we should do.
Might teach them a lesson...

jwenting 1,905 duckman Team Colleague

doesn't matter, he's pushing raw, uncompiled, unexecuted, JSTL code to the browser, which will never yield working HTML, let alone what he expects it will yield.

jwenting 1,905 duckman Team Colleague

Or better yet get yourself an introductory text on C++ and do your own research.

jwenting 1,905 duckman Team Colleague

there was no shared library folder 30 years ago when TC was created and maintained...

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

it's your homework, you're obviously too lazy to even look at some of the millions of examples implementing it strewn around the internet so why should we bother even trying to help you?

jwenting 1,905 duckman Team Colleague

no, #1 IS correct.
If you want to guarantee insertion order is maintained, use a List, not a Set.
While some Sets may be implemented to maintain insertion order, that's not the purpose of a Set.

jwenting 1,905 duckman Team Colleague

we're not here to do your homework for you, and this is clearly just your homework assignment that you're dumping here.

Show what you've done, give us your ideas, and maybe someone will tell you if you're right.

jwenting 1,905 duckman Team Colleague

JSTL code is executed on the server, not the client. So having a servlet send it to the client isn't going to work.

jwenting 1,905 duckman Team Colleague

which shows your utter lack of understanding of Java.
Your problem is your insistence on using the age old bridge driver which was never intended for being more than a technology demonstrator and inspiration for people wanting to write JDBC drivers.
It relies on 32 bit ODBC functionality which has long since been deprecated by Microsoft (a decade ago I think...).
It's only retained in the Java distribution to not make old code break that relies on it, IMO a waste of bandwidth for anyone trying to download a JDK or JRE as any code still using it past 2000 is fundamentally broken and should never be allowed to run.

Switch to another database, or find a better driver for your current one (and yes, there are some 3rd party JDBC-ODBC bridge drivers out there, maybe they're even supported still a decade after Microsoft themselves stopped supporting ODBC).

jwenting 1,905 duckman Team Colleague

welcome to Geeks Anonymous. Now insert peg A into slot B, take the presented punch card to the reader over in section 101a, and present it for your official membership lava lamp.

jwenting 1,905 duckman Team Colleague

operator overloading is not just dangerous in the hands of inexperienced programmers.
In fact in my experience it's most dangerous in the hands of experienced programmers who're overconfident and too clever for their own good, and as a result end up butchering it (and other language features) with "smart" things.

jwenting 1,905 duckman Team Colleague

looks more like some "work of art" in lights that has fallen victim to grafitti...

jwenting 1,905 duckman Team Colleague

or better yet, admit to your teacher that you spent the entire semester sleeping rather than paying attention in class, and that all your homework assignments you copied the solution from the internet rather than doing them yourself.
He'll not need you to submit a solution to your assignment when you do that, he'll have no problem calculating your final score without such a program.

jwenting 1,905 duckman Team Colleague

It's your thesis, so it should be your research...

jwenting 1,905 duckman Team Colleague

Java being programmed to make bad code harder to write (it's still possible, the moment you make things more fool proof nature creates a batter fool after all) they decided to not include certain capabilities that are extremely easy to abuse and very hard to use correctly, things like operator overloading and direct memory management.
That's all there is to it.

jwenting 1,905 duckman Team Colleague

your instructor can only help you if you're willing to learn.
You seem only to be caring about getting your homework accepted with minimal effort, that's not going to make your instructor interested in helping you, especially if (as is clear from your questions) you've not been paying attention in class.

jwenting 1,905 duckman Team Colleague

if you'd taken 10 seconds to read previous responses...

jwenting 1,905 duckman Team Colleague

You're either looping through the results incorrectly or you're connecting to a different schema where there's a different number of rows to be returned.

Any other possible options are so remote they're not worth considering.

jwenting 1,905 duckman Team Colleague

see the error description, most likely there's a problem in your project setup that causes it to not find something during the link phase.

jwenting 1,905 duckman Team Colleague

loop, test character chode, if one that needs replacing replace it, win.

jwenting 1,905 duckman Team Colleague

operator overloading isn't bad in theory, but it has such massive opportunities for abuse, and in the wild is hardly ever used except incorrectly, that the designers of Java decided to do without in order to prevent an entire class of problems relating to the concept.
From operators with side effects, operators doing utterly illogical things (think Strawberry operator+(Apple a, Orange b)), the list goes on and on.

jwenting 1,905 duckman Team Colleague

Any general purpose programming language is effectively neutral, in that it doesn't restrict you in what you can do with it except for those restrictions imposed upon you by the platform on which the created software is executed.

And if you mean that Java can run on any operating system/hardware, that's theoretically true as long as you're able to implement a JVM that will run on that operating system/hardware combination (which might be impossible if you're for example severely memory constrained and simply can't load all the data a full JVM would require).

Of course this also ends up being about the dual nature of Java...
Do you mean Java the platform, or Java the programming language?
Java the platform is defined by the JVM specification, Java the language by the language specification.
It's quite possible to create a compiler for Java that doesn't compile to classfiles (and thus doesn't generate output that will run on a JVM that complies with the JVMS), or to create a language for the JVM that doesn't comply with the JLS (in fact many such exist).

jwenting 1,905 duckman Team Colleague

what "the system"? What technology, what image, where is it coming from, why are you stuck, what have you tried?

It's utterly impossible to give any meaningful response based on a total lack of information, and a total lack of information is what we have here.

Have you even tried to solve the problem? If so, what have you tried? If not, why haven't you tried?

jwenting 1,905 duckman Team Colleague

hmm, the first "computer" I had was an electric typewriter with memory for one page of text, where you could enter a text, go through it and apply formating (on a screen holding about 10 characters), and then press a button and it would print the formated text...

You could (and I did) even buy memory modules so it could hold a whopping 4 pages of text, and retain them with the machine turned off (EEPROM, not flash, RAM).
Oh the days...

jwenting 1,905 duckman Team Colleague

blame people who don't know that K means Kilo to invent something meaning something else that causes confusion when used outside of its intended context...

jwenting 1,905 duckman Team Colleague

sn't only show you how is something done and how to do it your self. Instead, it throw you into the sea of the problem and let you experience why would you use this thing and when will you ever do.

which is what a good book does, teach you skills rather than tricks. Shows you how to swim rather than holding your head above the water.

You are looking at the most expensive book on C++ ever written, with nothing magical to show for that $110+ price [edit: with the fall semester underway, the price is now $135+].

seriously overpriced indeed. Better buy Stroustrup AND Lippmann and still have lunch money left (any serious programmer will want both of them anyway, and if you have them you won't need Deitell)...

C++ Primer (5th edition) is the best book written in C++

Have a 20 year old version, great book. But not really a tutorial, you're assumed to know something, or at least have other documentation on the side.

jwenting 1,905 duckman Team Colleague

seeing as all his "questions" have just been verbatim dumps of homework assignments, I seriously doubt he's capable of seeing how to do anything himself...

jwenting 1,905 duckman Team Colleague

First rule of programming: when in doubt about whether something is a bug in the compiler/language spec or a bug in your code, assume it's a bug in your code.
Second rule of programming: when in doubt whether something is a problem with the language spec or your understanding of said spec, assume it's a problem with your understanding.
Third rule of programming: don't try to invent new languages or libraries if there's existing ones that can be bludgeoned or cajoled into doing the job you need done.

jwenting 1,905 duckman Team Colleague

there is no "best".
Read all the other threads about it, several with the exact same title...

@Hericles: C# is becoming ever more popular, especially as engines like Unity become more powerful and stable.
And very few projects will be written using a single language. Most will have a core in one language, then implement some scripting language for most other stuff that's easier to use for the content designers.

jwenting 1,905 duckman Team Colleague

find and download the library somewhere on the net, and add it to your project as explained in the documentation of your IDE.

That's all there is to it.

jwenting 1,905 duckman Team Colleague

main reason for superfluous tests in the US is covering yourself so you can't get sued for malpractice in case you failed to diagnose something, anything, however unlikely.

Over here in the Netherlands, it's rather the other way around and healthcare rationing has reduced the number of tests and other diagnostic procedures to the point that many conditions don't get diagnosed at all until they're so bloody obvious that even without testing they can be recognised by a nurse or family doctor.
Of course by that time it's often a case of a very serious condition, maybe even life threatening or causing permanent damage.

jwenting 1,905 duckman Team Colleague

come up with idea you think is just past your current skill level.
Start implementing, start learning, win.

jwenting 1,905 duckman Team Colleague

You seam to know alot, so tell me why the dimension of Koch's curve is log(4)/log(3)?

mathematically dimensions can be broken numbers. Fractal geometry explains how those are calculated.

http://en.wikipedia.org/wiki/Fractal_dimension
http://davis.wpi.edu/~matt/courses/fractals/intro.html
http://www.vanderbilt.edu/AnS/psychology/cogsci/chaos/workshop/Fractals.html
http://www.wahl.org/fe/HTML_version/link/FE4W/c4.htm

It's a mathematical construct, not physical dimensions.

jwenting 1,905 duckman Team Colleague

And don't start trying to write games until you're a pretty decent programmer AND designer, it'll only end in tears.
Games are complex pieces of code, you'll get utterly swamped.

jwenting 1,905 duckman Team Colleague

hmm, what's up with the flood of "I wanna be a script kiddie" style posts. Must be the school vacations are here and all the kiddos normally posting homework questions now have other things on their mind?

jwenting 1,905 duckman Team Colleague

Class.forName("com.mysql.jdbc.Driver");

This hasn't been needed for years.

Stefan, read about how Java works. That's an extremely basic question. The driver jar needs to be on your classpath.

jwenting 1,905 duckman Team Colleague

And HF Java isn't all that good a book anyway. You get what you pay for...

jwenting 1,905 duckman Team Colleague

As long as all the sources you need to compile the application are on the source path for the compiler it will compile them all into the output path (granted that any other classes needed are on the classpath for the compiler and there are no compiler errors generated of course).

You may have multiple source directories just like you may have multiple locations on the classpath, which can be handy when compiling a system comprised of multiple modules (though it's better to compile each module separate).

jwenting 1,905 duckman Team Colleague

Unity isn't so much dual license as much as offering a limited version with reduced functionality for free (they I think also introduce some advertising into your game when you use it, like a splash screen).

For the rest, as Mike says, most engines are either proprietary (though maybe for sale given enough money) and/or created with resale in mind and offered to people for sale.

There's some free ones of course, even open source ones, but as always you get what you pay for.

jwenting 1,905 duckman Team Colleague

you'll need to get used to reading, as there's a lot of things to know and just watching videos on youtube or watching your teacher demo things isn't going to teach you much of anything...

Read, experiment, analyse, rince and repeat. That's the only way. And ask questions, not just here but ask your teachers. Discuss things with them and your classmates as well.

jwenting 1,905 duckman Team Colleague

well, that array element contains "nulla" because that's what you put in there...

jwenting 1,905 duckman Team Colleague

\\ he means :)

stultuske commented: yes indeed ... typo :) +13
jwenting 1,905 duckman Team Colleague

I think he figured out that the best way to get to where he wants to go is to try to trick other people into writing the actual code...

jwenting 1,905 duckman Team Colleague

ah, another attempt at solving the traveling salesman problem by dumping the problem in a public forum for others to solve...

jwenting 1,905 duckman Team Colleague

what have you tried, where did you go wrong? Show some effort, we're not your personal homework service.