Which Eclipse IDE version to choose?

What I would like to do is use Eclipse for (…) The Eclipse IDE for Java EE Developers allows to do what you’re asking for out of the box. Should I download a totally new version from Eclipse site or can I just ADD necessary features/plugins to my current Eclipse setup. Both would work, although … Read more

How to determine day of week by passing specific date?

Yes. Depending on your exact case: You can use java.util.Calendar: Calendar c = Calendar.getInstance(); c.setTime(yourDate); int dayOfWeek = c.get(Calendar.DAY_OF_WEEK); if you need the output to be Tue rather than 3 (Days of week are indexed starting at 1 for Sunday, see Calendar.SUNDAY), instead of going through a calendar, just reformat the string: new SimpleDateFormat(“EE”).format(date) (EE … Read more

Java error “Value of local variable is not used”

Well, the error “The value of local variable p is not used.”, Is not actually an error. It’s your IDE (Eclipse), warning you that you aren’t actually reading that variable, so you aren’t receiving any input from it. And the other problem with your class is, you don’t have a main method. Like this, And … Read more

Static Final Long serialVersionUID = 1L

The serialVersionUID is a universal version identifier for a Serializable class. Deserialization uses this number to ensure that a loaded class corresponds exactly to a serialized object. If no match is found, then an InvalidClassException is thrown.

How to send data to COM PORT using JAVA?

This question has been asked and answered many times: Read file from serial port using Java Reading serial port in Java Reading file from serial port in Java Is there Java library or framework for accessing Serial ports? Java Serial Communication on Windows to reference a few. Personally I recommend SerialPort from http://serialio.com – it’s … Read more

What is a hash function in java?

The Wikipedia article will have a lot of technical information, but a simplistic view of hashing is something like the following. Imagine that there’s a magical function that can give a number to any object. Given the same object, it always return the same number. Immediately now you have a quick way to test if … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)