Java 38
Google Currency Converter Demo With Eclipse Java Project
Google provides a Currency Converter API services for Consumption by Client Application. The link for this library is listed below:- https://code.google.com/p/currency-converter-api/ The maven dependecy tag to include this library is listed below. <dependency> <groupId>com.tunyk.currencyconverter</groupId> <artifactId>currency-converter-api</artifactId> <version>1.0</version></dependency> In this Demo, “We will see how to configure it in a Java project […]
Measuring Performance Using Perf4j Library
“Perf4j.jar” is a java library for measuring performance of a java file. The Download link:- http://perf4j.codehaus.org/downloads.html In this Demo, “We are using LOG4J library to log in the console.Logger Info will print the numbers in the console. A timer is used to randomly select some Milli seconds to delay”. The […]
Jsoup WhiteList Sanitizing HTML Input
Jsoup has many features like parsing html document, searching inside Dom, manipulating dom element, cleaning the output with the help of jtidy. Jsoup provide whitelist feature for the sanitizing/cleaning the html. Whitelist allows what are the features that are passed to cleaning and others are discarded. Download Link of jar (jsoup-1.7.1.jar) :- […]
Java Regular Expression : Matcher & Pattern
Java provides java.util.regex package for regular expression evaluation. It has one interface MatchResault and two derived classes Matcher and Pattern. Testing Matcher and Pattern:- The following demo code shows use of Matcher and Pattern class use.It also shows the ISBN code validation. A ISBN book code is 13 digit number. RegularExpressionDemo.java, package com.sandeep.regular.exp;import […]