Tag Archives: java

How to write Java lambda Expression ?

Lambda expression is a new and important feature of Java which was included in Java SE 8. It provides a clear and concise way to represent one method interface using an expression. It is very useful in collection library. It … Continue reading

Posted in java, Uncategorized | Tagged , | Leave a comment

how to install,and configure java on linux

Install Oracle Java Runtime Environment (JRE) To check if you Oracle Java installed, type the following command in Terminal. java -versionwhich reside at /usr/bin/javaget Oracle Java from the Java.net website at http://www.java.com/en/download/manual.jsp.     Create a folder named oracle-jre and … Continue reading

Posted in Uncategorized | Tagged , , ,

How To Unzip Large File With Java

import java.io.*; import java.util.zip.*; public class UnZip { final static int BUFFER = 2048; // “/home/admin/Downloads/movies/stockv2@ingram.zip” public String unzipFile(String compressFilePath, String uncompressFolderPath){ String uncompressedFilePath=null; try { BufferedOutputStream dest = null; FileInputStream fis = new FileInputStream(compressFilePath); ZipInputStream zis = new ZipInputStream(new … Continue reading

Posted in java | Tagged , , | 1 Comment