Java 38
Apache Common Math Library
Apache math library provides features like statistic,transformation,3d geometry,data generator etc. API download link :- api library download link Project Structure:- Testing Apache Math:- package com.sandeep.apache.math;import org.apache.commons.math3.complex.Complex;import org.apache.commons.math3.random.JDKRandomGenerator;import org.apache.commons.math3.random.RandomGenerator;import org.apache.commons.math3.stat.descriptive.DescriptiveStatistics;public class TestApacheMathLibDemo { /** * @param args */ public static void main(String[] args) { RandomGenerator randomGenerator = new JDKRandomGenerator(); System.out.println(randomGenerator.nextInt()); System.out.println(randomGenerator.nextDouble()); […]
JDOM :DOM parser
It is a light weight xml dom parser. It provides ma features like filter,namespace. The filters are categorized mainly Element filter,content filter. The API download Link :- jdom download link Project Structure:- Test Jdom Api:- package com.sandeep.jdom.xml;import java.io.File;import java.io.IOException;import java.util.List;import org.jdom2.Document;import org.jdom2.Element;import org.jdom2.JDOMException;import org.jdom2.filter.ElementFilter;import org.jdom2.filter.Filter;import org.jdom2.input.SAXBuilder;public class JDomTest { […]
JFreeChart In Servlet
JFreeChart api is for generating Different Charts. chart type supported by this library line charts, scatter plots, time series charts, high-low-open-close charts, candlestick plots, Gantt charts, etc. Download Link:- jfree chart download link Project Structure:- Test JFreeChart:- package com.sandeep.jfreechart.servlet;import java.awt.image.RenderedImage;import java.io.IOException;import javax.imageio.ImageIO;import javax.servlet.ServletException;import javax.servlet.ServletOutputStream;import javax.servlet.http.HttpServlet;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;import org.jfree.chart.ChartFactory;import org.jfree.chart.JFreeChart;import […]
Apache Compression : Zip File
Apache supports compression of files. The output compressed file can be :- tar,zip,jar,bzip2,pack200,xz It has Compressor and Archiver components. Apache compress library download link:- Apache compress link Project Structure:- Testing Apache Compress:- package com.sandeep.apache.compress;import java.io.FileInputStream;import java.io.FileOutputStream;import java.io.IOException;import java.util.zip.ZipEntry;import java.util.zip.ZipException;import java.util.zip.ZipOutputStream;public class TestApacheCompress { /** * @param args */ public […]