Skip to main content

Posts

Showing posts from April, 2016

A End to End ant Build xml snippet

A End to End ant Build xml snippet you could use for reference <?xml version="1.0" encoding="UTF-8"?> <project name="End to End Build" default="sendmail" basedir=".">     <target name="init">         <tstamp />         <property file="build.properties" />             <path id="classpath">             <pathelement path="${servlet.jar}" />             <pathelement path="${junit.jar}" />         </path>

processing java8 collections with streams and lambda expression

As you all know java 8 introduced many new features ; and one of them is lambda expressions , those are very helpful to reduce some boilerplate code . I have tried some of them today those are very helpful and tricky code ; iterating over collection can be done in one or two lines of code . It can be used in multithreaded environment as well.