Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.

Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.

Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.

If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode HTML tags when pasting" checkbox before pasting anything inside the PRE block, and make sure "Ignore HTML tags in this message" check box is unchecked.

Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.

Please do not post links to your question in one forum from another, unrelated forum (such as the lounge). It will be deleted.

Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.

If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.

No advertising or soliciting.

We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.

When answering a question please:

Read the question carefully

Understand that English isn't everyone's first language so be lenient of bad spelling and grammar

If a question is poorly phrased then either ask for clarification, ignore it, or mark it down. Insults are not welcome

If the question is inappropriate then click the 'vote to remove message' button

Insults, slap-downs and sarcasm aren't welcome. Let's work to help developers, not make them feel stupid.

I'm looking for a good open source Gantt chart library for Java Swing. I tried JFreeChart but it is not able to draw subtask. I tried with SwiftGantt too. It is able to draw subtask, but it is a little unstable and the look and feel is not professional :(.
Can you recomends others?
Thanks in advance!

I want to buy a laptop for Java development. Of course the question would be simple if I were doing just plain Java development. But I want to try new technologies often used with Java - Kubernetes, Docker etc. That's why I'm asking it here.

These technologies (K8s, Docker) use virtualization. I know that you need to set something in BIOS/UEFI to run Docker. Some years ago I had to buy a new CPU to run 64-bit virtual machines, because my previous CPU was not supporting 64-bit guest virtual machines. The feature in question was called VT-x.

Of course the sure thing would be to buy a Mac, but I want a 500-600 EUR laptop.

So the question is:
1) Do I need to search for some show-stopper CPU features when choosing a computer?
2) Anything that does not work on AMD chips?
3) Is 8GB RAM sufficient for small/medium sized personal projects?
4) Any other pitfalls?
5) Is Windows 10 Home somehow unusable for professional software development?

We have been given a project for my ComSci class and I've done what i think is half, but got feedback today and it was devastating. I dont know what to do. The final hand in is on the 1st of June. Is there anyone willing to maybe help me write the code? The most complex coding knowledge needed is 2D arrays. I would really appreciate it

Sorry, this site does not provide code to order. For a start it does not help you to hand in work written by someone else. If you cannot understand your assignment then you need to go over your study and course notes a few more times. There is also lots of useful information and sample code at The Java™ Tutorials[^]

Hi, first time posting so hopefully doing it correctly. I have used a form builder to build my forms but have run into a couple of issues with functionality. In the code/calculation below I need to be able to return the answer 0 if the answer is less than 0. I've searched loads to no avail so any help would be much appreciated. T.I.A.

What language is that, it does not look much like Java? However assuming it is supposed to convert that string into an actual sum it does not look valid. In the expression Nett_Earnings -Actual_Takings >0==0, what is >0==0 supposed to mean?

Thanks for answering, I just assumed it was Java as all the scripts are. >0==0 is just one of the ways I was trying to make it work from their info before they told me the form couldn't do the calculation.

Thanks for answering. The programme is called simfatic form maker.
This was their reply to my query
"Simfatic Forms calculation field can't handle multiple levels of variables. In this case, the user enters a variable that intern is a variable in the next step.
This form has to be hand coded with the help of a developer"

hi guys, I was wondering if someone could help me write a search function that looks for a string in a hashtable. iv been struggling with this part of my assignment. iv done all the inserts parts and hash function itself.

hi Richard,
thank you for replying. So the hash table implementation stores simple String data items, so we can only track if an item is in the data structure or not. The find function, determines if the string is in the data the hash table or not. The program loads the test dataset into the data structure, then performs find operations on all the test data items, followed by find operations on a disjoint set of unseen data items.

Iv been able to code the hash component, its just the search part that I'm not too sure of.

As I suggested before, you just need a loop to compare your search value with all the ones already stored. If they are in an array or list then it is just a simple compare of each value. If they are in a database then it is a SQL SELECT statement.