Java (not to be confused with JavaScript or JScript or JS) is a general-purpose object-oriented programming language designed to be used in conjunction with the Java Virtual Machine (JVM). "Java platform" is the name for a computing system that has installed tools for developing and running Java programs. Use this tag for questions referring to the Java programming language or Java platform tools.
I am working on some Java code which needs to be highly optimized as it will run in hot functions that are inv
I'm trying to round BigDecimal values up, to two decimal places. I'm using BigDecimal rounded = va
I'm trying to write a Java routine to evaluate math expressions from String values like: "5+3" "10-40" "(
I'm thinking in particular of how to display pagination controls, when using a language such as C# or Jav
I'm looking for the fastest way to determine if a long value is a perfect square (i.e. its square root is
Why isn't Collection.remove(Object o) generic? Seems like Collection<E> could have boolean remov
Is there some one-liner bridge method to dump a given Enumeration to java.util.List or java.util.Set? Somethin
What is the difference between Service Provider Interface (SPI) and Application Programming Interface (API)? M
When compiling my project I get the following error message: Program type already present: com.google.androi
I have a Java String that contains XML, with no line feeds or indentations. I would like to turn it into a Str
Isn't there a convenient way of getting from a java.util.Date to a XMLGregorianCalendar?
When reading and using this article it assumes that we have a full object definition with class and mapping (p
I've got the following code: public static String getVersion() { PythonInterpreter interpreter = ne
I started studying python a couple of month ago, then I found Jython. Do threads work properly in Jython, sin
I have a classifier that I trained using Python's scikit-learn. How can I use the classifier from a Java