ZIP AND GZIP / NOTES</>↗Zip and GZIP25 Sep 2013
In the previous example we have learn how to compress a file in GZIP format. To get the file back to its original version we will now learn how to decompress the gzip file. Just like the previous example, we are also going to use the FileInputStream and FileOutputStream class to read the compressed source […]
ZIP AND GZIP / NOTES</>↗Zip and GZIP25 Sep 2013
In this code example we will learn how to compress a file using the gzip compression. By its nature, gzip can only compress a single file, you can not use it for compressing a directory and all the files in that directory. Classes that you will be using to compress a file in gzip format […]
MAVEN / NOTES</>↗Maven23 Sep 2013
In this post you will learn how to create a simple project, a Hello World project using Maven. If you haven’t installed Maven in your machine you can read Introduction to Apache Maven posted earlier in this blog. In this post you will see what the basic configuration for creating a maven project. Such as […]
JUNIT / NOTES</>↗JUnit06 Sep 2013
In this post we will start to learn about JUnit Framework. JUnit is a framework for unit testing Java applications. It was developed by Kent Back and Erich Gamma to help developers to create a better applications. JUnit has become the standard tool used by developers when it comes to unit testing. Every day, when […]
CORE API / NOTES</>↗Core API06 Sep 2013
In this example of Java Generics you will see how to create a generic Map object. Creating a generic Map means that you can define the type of the key and the type of the value of object stored in the Map. The declaration and the instantiation of a generic Map is only different to […]
CORE API / NOTES</>↗Core API06 Sep 2013
In another post of Java Generics you have seen how to create a generic collection using List in this example you will learn how to make a generic Set. Making a Set generic means that we want it to only hold objects of the defined type. We can declare and instantiate a generic Set like […]