Latest Posts From Pankaj

StringBuffer Vs StringBuilder

String vs StringBuffer vs StringBuilder

String is one of the most widely used classes in Java. StringBuffer and StringBuilder classes provide methods to manipulate strings. We will look into the difference between StringBuffer and StringBuilder. StringBuffer vs StringBuilder is a….

How to remove SVN Properties from SVN Diff

I use SVN for my projects version control system. Sometimes I need to see the difference between two tags or two branches but when I run “svn diff” command, it gives a whole bunch of….

Longest Palindrome Substring in a String in Java

Longest palindrome substring in a string is a very common java interview question. To find out the longest palindrome in String, first of all, we need to identify the logic to do it. Longest Palindrome….

Java Program to find all Permutations of a String

Finding all permutations of a String in a Java Program is a tricky question and asked many times in interviews. Permutation of String in Java Algorithm To get all the permutations, we will first take….

Eclipse Shortcuts

Eclipse is one of the most widely used IDE for Java developers. I have been using it for more than 10 years and there are so many shortcuts that can help you in development by….

Random Number Generation Java

Random Number Generator in Java

Today we will look at how to generate a random number in Java. Sometimes we need to generate random numbers in Java programs, for example, a dice game or to generate a random key id….

How to reduce image size online

Sometimes when we are browsing, we see that the page takes more time to load and most of the time it’s because of lots of images on the web page. It’s bad for user experience….

CSSrefresh.js – auto refresh CSS files in browser

Recently I got to know about a great tool for CSS developers – CSSrefresh.js. Like any website owner, I always crave to change my website themes and WordPress plugin layouts to get a better presentation…..

How to fix maven-dependency-plugin (goals “copy-dependencies”, “unpack”) is not supported by m2e in Eclipse

Recently when I imported a Maven Project in Eclipse Indigo, it was showing following error in the project – maven-dependency-plugin (goals “copy-dependencies”, “unpack”) is not supported by m2e. The issue was coming because Eclipse M2E….

Jersey Java Tutorial

Welcome to Jersey Java Tutorial. Recently I started working on a Restful web service project using JAX-RS Jersey. Jersey Java There are some Jersey tutorials available online but I faced some issues with exception handling….

Generic selectors
Exact matches only
Search in title
Search in content
Search in posts
Search in pages