New answers tagged java
I can only agree with Szabolcs comment. Upgrading to Mavericks brought a lot of problems, but Mathematica worked from the first minute. Therefore, let me cite the comment into an answer: You don't need to bother with Java at all. Apple provides Java 6, and this is what Mathematica uses. When I upgraded to Mavericks, Apple Java 6 was automatically ...
There are two parts to accessing the contents of a Java Map object. The first is to traverse the iterator interface to extract the map elements. The second is to use accessor methods on those elements to extract their properties. For the purpose of discussion, let's create a map from strings to Java date objects: Needs["JLink`"] InstallJava; $map = ...
Turns out one can use Google's gson library to serialize any Java object into JSON, which can then be imported in Mathematica using ImportString function: list = ImportString[JavaNew["com.google.gson.Gson"]@toJson[data@mCollections],"JSON"]
Top 50 recent answers are included