jwenting 1,905 duckman Team Colleague

You'll need to write an expression parser.
Not a beginner's job, though not all that tricky.
There are several books (and no doubt websites) that contain sample code for simple parsers that you can use for inspiration.

jwenting 1,905 duckman Team Colleague

And do you know some solution? If yes, than you write me it please.

no, we're not going to do your work for you. Read the rules, kid.
Anyway, your own writings seem pretty random so just keep sitting behind that keyboard and hammer away at it.

jwenting 1,905 duckman Team Colleague

The program will eventually crash with an OutOfMemoryError. Should be a good enough end :)

jwenting 1,905 duckman Team Colleague

php is useless, it's in invitation to spaghetti code.
Effectively such code is impossible to maintain, we call it write-only code.

it's bad enough that people use it to create websites, don't make things worse by trying to push it into the application programming domain where it doesn't belong.

You don't try to use a hammer when you require a chainsaw, right?

jonsca commented: Yes +4
jwenting 1,905 duckman Team Colleague

something else to keep in mind is never to take any advice from someone calling themselves a professional yet can't be bothered to check the timestamp on a question and tries to give an answer >3 years after it's already been answered.

jwenting 1,905 duckman Team Colleague
public boolean checkPassword(String password) {
  // your logic here
}
jwenting 1,905 duckman Team Colleague

first step is coming up with your own idea.
ANYTHING you didn't come up with yourself won't be new.

Salem commented: Yup, just another dump "project" thread +20
jwenting 1,905 duckman Team Colleague

There is no secret. Just years and years of hands on experience and a willingness to spend very long hours studying and practicing your skills.

jwenting 1,905 duckman Team Colleague

too lazy or too stupid to think for yourself? Which of the two applies to you?
Whichever it is, you don't deserve to get a passing grade.

jwenting 1,905 duckman Team Colleague

The instructions almost write it for you...
ALL you need to do is translate them into Java code. If you can't do even that you should go back to the very first lesson you got and restart from there.

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

and don't expect us to do your research for you.
If you're indeed a university student about to start work on his thesis you should by now be fully capable of doing original research.
A bit of library study and using some search engines would be child's play in comparison.

Of course many seem to get by in university without ever doing anything except plagiarising the work of others and handing it in as their own.
But those don't deserve the name "student" let alone deserve to get a degree, wouldn't you agree?

Salem commented: Absolutely! +20
jwenting 1,905 duckman Team Colleague

If the parent hasn't committed a crime, then they cannot and should not be charged with a crime.

Maybe. But in some (many?) countries the parents are the legal guardians of their offspring and legally responsible for their actions.
Thus the parents can indeed (and sometimes are) charged with the crimes comitted by their children on the premise that they were negligent in not preventing those children comitting those crimes.

There's a debate here now as to whether parents of children with a foreign passport should be thrown out of the country if their children turn into repeat offenders.
Personally I hope this happens, as more often than not these parents are both fully aware of their childrens' actions and unwilling (rather than incapable) of stopping them.
Similarly, parents of any child unwilling to stop that child comitting criminal acts should be treated as an accomplice to that act even if they were not actively involved in the crime.
For first offenders that's hard to prove of course, unless maybe the child was driven to a place where he mugs and kills someone, then driven home bloodie and with bags of loot, for repeat offenders it's often a lot more clear cut.

Parents are responsible for raising their children to be law abiding citizens. If they fail through negligence or deliberate act in achieving that, they should pay the price along with their child.
If they fail to achieve that despite best effort, …

jwenting 1,905 duckman Team Colleague

Is it so hard to find relation between set theory and databases ?

For kids like op any effort that involves their brain is hard.

jwenting 1,905 duckman Team Colleague

So you're repeating what I just said.

no, I'm specifying and expanding on it, not repeating it.

jwenting 1,905 duckman Team Colleague

Week 0: come up with a different product name.
The name "Tetris" is trademarked worldwide and the owners are extremely agressive in enforcing that trademark, taking anyone using it without permission to court even if there's no commercial interest.

jwenting 1,905 duckman Team Colleague

You can't pass an Exception to a method. The point of an Exception is to signal that something went wrong and to give the person who called the method the opportunity to deal with it.

False yet true.
You CAN pass an Exception to a method. In fact that's exactly what many logging APIs do all the time to properly log them :)
I can fully understand someone wanting to pass an Exception to a GUI control in order to have that control show a proper error message to the user.

A JOptionPane however doesn't know how to do that. You'll instead have to have the method that pops up that JOptionPane analyse the Exception and generate a String with the error message to be shown, then pass that String to the JOptionPane.

jwenting 1,905 duckman Team Colleague

dude i was just asking.. how does this make me not deserve to get into the course?

Unwillingness to do your own work, or incapacity to do so.
Tons of others out there who are willing and capable, therefore more deserving of a place in that course than you are.

If you do get in, you're just going to post every bit of homework on forums like this one, expecting others to do it all for you so you can get a nice diploma without ever having to lift a finger.

Salem commented: Solid. +20
jwenting 1,905 duckman Team Colleague

uh, not necessarilly. That will give the size in bytes of a single instance of the class, not the "size of the class" whatever that might be (op never gave any indication what he means by the term).

jwenting 1,905 duckman Team Colleague

how we make the software through c++?

you can't. We can, but not you.

Nick Evan commented: probably true. +12
jwenting 1,905 duckman Team Colleague

Those are pretty clear compiler errors.
I'd suggest you try to resolve them, and ask specific questions about them if you can't figure out how to go about that.

jwenting 1,905 duckman Team Colleague

well, initialise it :)

jwenting 1,905 duckman Team Colleague

http://java.sun.com/j2se/1.5.0/docs/api/java/sql/Date.html

So that is no longer correct? Or why else isn't it listed there.

That has always been correct, for SQL dates :)

BestJewSinceJC commented: :) . +5
jwenting 1,905 duckman Team Colleague

Turbo C is a 20+ (going on 30) year old product created for a different operating system entirely, an operating system that hasn't been supported by Microsoft for 15 years.

No, it's not going to be supported. Anyone with a grain of common sense would realise that, and would not even attempt to use Turbo C, instead using more modern compilers.
Sadly it seems common sense is sorely lacking in many places.

jwenting 1,905 duckman Team Colleague

And because we've been doing it for years (well over a decade in fact...) rather than failing utterly to do it for even a few hours before dumping our homework on some forum and insulting those who might help us when they told us why we should do it ourselves.

jwenting 1,905 duckman Team Colleague

Do NOT use Visual C-- 6 AT ALL. It's WAY outdated, unsupported, non-standard compliant, etc. etc.
There is NO NEED WHATSOEVER to use it unless you're maintaining a large project created with it years ago that would take a lot of effort to migrate (in which case it's probably best to rewrite the whole thing, only doing critical maintenance on the old version while doing so).

jwenting 1,905 duckman Team Colleague

ah, the typical homework kiddo response. Doesn't get its homework done for it pronto, gets abusive and asks to be banned.

Do you really think you're going to get help this way, kiddo? Because if you do you're sorely mistaken.

jwenting 1,905 duckman Team Colleague

don't need to, got taught all that in kindergarden.

jwenting 1,905 duckman Team Colleague

People that make a big deal about Dates really do make me angry!!

They give me gas.

jwenting 1,905 duckman Team Colleague

Indeed. If there is ONE thing that makes life easier for mods it is using the flag post feature to report spam etc.

Problem is spammers post faster than I can report them, given the minimum time required between posts.

jwenting 1,905 duckman Team Colleague

I've more than enough black T shirts to last me through the current ice age, thank you very much.

jwenting 1,905 duckman Team Colleague

well, maybe he has nothing to post, in which case there's nothing to do the calculation :)

BestJewSinceJC commented: Haha! +5
jwenting 1,905 duckman Team Colleague

not urgent at all...

jwenting 1,905 duckman Team Colleague

I know which "student" would get the lowest marks were I the teacher here...

jwenting 1,905 duckman Team Colleague
<c:if test="$model.value">
jwenting 1,905 duckman Team Colleague

if you're too stupid to find the button to post a new thread, you're far too stupid to create anything like a chatbot.

Rashakil Fol commented: stuuuuuuuuuuuuupid +7
jwenting 1,905 duckman Team Colleague

Turbo C isn't even good for homework any more as it implements a standard that's 20 years out of date.

jwenting 1,905 duckman Team Colleague

The answer to increased cost (which is inevitable in any socialist healthcare system, ALL countries having one have this) is to 1) increase taxes and 2) reduce service.
Needed procedures don't get performed because quota are met, people are left to suffer and die because there aren't enough beds and doctors to treat them or simply because the required procedure isn't allowed to be performed on them or medication can't be prescribed because it's not on some list of things that are "approved" for their condition.

This has nearly killed both my parents at least once, until they got their private extension policy to the government dictated service to pay for life saving medication that would otherwise have been denied them.
Expect a mass increase in medical errors as doctors can't spend the time and means required to do a proper job (and simply no longer care, as it's a loosing battle against the system anyway).

I've observed this first hand, and heard about it from many others in several countries with government run healthcare systems.

jwenting 1,905 duckman Team Colleague

there's never a reason to use finalize(), at least not until you know very well how it works and once you do you realise there's always a better way to do things.

Finalize works on an instance of a class, if it works at all. Static members are not bound to any instance and therefore aren't finalized until such a time as finalize is called on the Class instance for the class as a whole, which typically doesn't happen until the JVM shuts down.

jwenting 1,905 duckman Team Colleague

it's no matter of opinion at all. The God Class (which having one massive class is called) is known to be a very bad thing.
It's a well documented anti-pattern.

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
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

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

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

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

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

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

the lack of that homework scheduler?

Salem commented: LOL :) +19
jwenting 1,905 duckman Team Colleague

Write a scheduling algorithm for the OS.

a homework scheduler :)

jwenting 1,905 duckman Team Colleague

Do something about how lazy kids can't ever come up with their own project ideas.
It's a sure winner, and you can use yourself as an example of just such a kid.

Salem commented: LOL +19
jonsca commented: Nice! +2