In Java 7 there were quite a lot of new things added to the File NIO package (java.nio)- there was a new java.nio.file package and java.nio.file.attribute package. Main highlights of the java.nio.file package are the following classes: Path: Its an object used to locate a file or directory in the file system. The value contained …
Merge Sort implementation using Fork-Join Framework in Java 7
In our previous post we went through the basics of Fork-Join Framework introduced as part of Java 7. In this post lets apply the same Fork-Join to implement Merge sort algorithm. The pseudo code for Merge sort can be found here. also read: Java 7.0 Tutorials New Features in Java 7.0 G1 Garbage Collector in …
A simple Location and Weather mashup using Gaelyk Framework
In our sample Gaelyk application here we stopped at just obtaining the location information. In this post lets update that application to fetch the Weather information as well. also read: Groovy Tutorials Creating JSON using Groovy Developing Groovy based web application and deploying to Google App Engine For the weather information we make use of …
Simple introduction to Fork-Join Framework in Java 7
Fork-Join Framework was added as part of Java 7 which makes use of the ExecutorService interface to distribute tasks to the worker threads in the thread pool. The difference in Fork-Join is that the ideal worker threads can steal queued subtasks from the other tasks and execute them. also read: Java 7.0 Tutorials New Features …
Handling/Avoiding Null’s in Java using Guava versus Scala
There was a discussion about nulls in the latest episode of JavaPosse. Having been inspired from that discussion and with an urge to check out Google Guava library, I came across a way to handle Null’s in Guava which is very similar to the way Scala handles. also read: Java Tutorials Java EE Tutorials Design …
Developing Groovy based web application and deploying to Google App Engine
We have seen how to develop a ZK based application and deploy it to OpenShift. Google has also a Paas offering called Google App Engine(GAE) which supports Java, Python and Dart applications. Gaelyk is a simple Groovy based toolkit to develop and deploy application to GAE. In this article lets build a simple Gaelyk based …
HelloWorld with Netbeans 7.2 beta and Scala 2.9
Here is the step by step procedure to set up the scala(2.9) environment with Netbeans(7.2) on a Windows Vista system 1. Install Netbeans 7.2 Beta if not already installed from here. 2. Download the Scala installable from here. Install Scala on your system. 3. Set the environment variable SCALA_HOME pointing it to the Scala installation directory. (On Windows …
JavaBeat Newsletter-1: What’s new and noteworthy in the Java ecosystem?
We at JavaBeat have thought of coming up with a fortnightly post, a JavaBeat Newsletter covering the latest news in the Java ecosystem be it in the Java language, Other JVM based languages, Cloud support, Tools and other frameworks and also few noteworthy posts added on JavaBeat. also read: Java Tutorials Java EE Tutorials Design …