How to uninstall Eclipse?

There is no automated uninstaller. You have to remove Eclipse manually by deleting some directories and files. Note: I use Unix style paths in this answer but the locations should be the same on Windows or Unix systems, so ~ refers to the user home directory even on Windows. Why is there no uninstaller? According … Read more

How can I convert IPV6 address to IPV4 address?

While there are IPv6 equivalents for the IPv4 address range, you can’t convert all IPv6 addresses to IPv4 – there are more IPv6 addresses than there are IPv4 addresses. The only sane way around this issue is to update your application to be able to understand and store IPv6 addresses.

how to use math.pi in java

I am having problems converting this formula V = 4/3 π r^3. I used Math.PI and Math.pow, but I get this error: ‘;’ expected Also, the diameter variable doesn’t work. Is there an error there?

Difference between Inheritance and Composition

They are absolutely different. Inheritance is an “is-a” relationship. Composition is a “has-a”. You do composition by having an instance of another class C as a field of your class, instead of extending C. A good example where composition would’ve been a lot better than inheritance is java.util.Stack, which currently extends java.util.Vector. This is now … Read more

String concatenation: concat() vs “+” operator

No, not quite. Firstly, there’s a slight difference in semantics. If a is null, then a.concat(b) throws a NullPointerException but a+=b will treat the original value of a as if it were null. Furthermore, the concat() method only accepts String values while the + operator will silently convert the argument to a String (using the … Read more

Java split string to array [duplicate]

This behavior is explicitly documented in String.split(String regex) (emphasis mine): This method works as if by invoking the two-argument split method with the given expression and a limit argument of zero. Trailing empty strings are therefore not included in the resulting array. If you want those trailing empty strings included, you need to use String.split(String … Read more

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