How to convert an ArrayList to array in Java

Today, I will share a very basic Java program that converts an ArrayList to an array. For most Java developers this is a routine task, but many newcomers to Java have asked me this question of how to convert an array to ArrayList. Here is the example code.

How to add Amazon affiliate links to your posts in one step.

Amazon.com being the largest online retailer offers a variety of merchandise. Because of their huge selection of products it is no surprise that Amazon affiliate program is so popular among bloggers. With an astonishing number of products available through Amazon.com it is quite likely that every blogger will find a related product to link in …

How to validate date using Java regular expression

My earlier post on how to validate email address, SSN and phone number validation using Java regex still attracts a lot of visitors. Today I realized that another piece of data that many programmers need to validate is the date. Many Java applications have to process input date values, so I thought it will be …

How to write to properties file in Java

One of most visited posts on this blog is How to read properties file in Java. In that post I explained how you can read from a properties file. But many people came to that post searching for an example on how to write to a properties file. So I thought it will be beneficial …

Make AdSense Deluxe plugin work with WordPress 2.8.5

Recently I upgraded to WordPress 2.8.5. The upgrade process itself went smoothly but some of the plugins I have installed on my blog stopped working with latest WordPress version. One of them is AdSense Deluxe.I use AdSense units on my blog (as you can see) and use AdSense Deluxe plugin to manage my ads. The …

Improve your writing style without breaking a sweat.

Image credit:Mooganic Nothing is more embarrassing than a misspelled word or incorrect grammar in an article on your blog. OK, may be there are other more embarrassing things out there but this still is not a nice scenario for a professional blogger. As a blogger you should try to catch all your mistakes before your …

Five best free iPhone applications for bloggers

Smart phones are a great tool for bloggers to blog even when they are away from their computers. Ever since iPhone was introduced mobile-blogging hit its stride. With a plethora of apps available for iPhone you can now easily post to your blog wherever you are. Although most iPhone apps have a modest price but …

Why you should join ProBlogger community NOW.

Recently Darren Rowes of problogger.net launched a premium forum for bloggers ( problogger.com). I was surprised that he offered the membership of only $1.95 a month. I singed up as soon as I heard the news and I believe it’s worth much more than that. The community is getting close to 2000 member strong. The …

Nine Must Have JavaScript Tools For Every Web Developer

Almost all major web development projects include some javascript. Developing Javascript may be easy for some but working around various browsers’ incompatiblities makes it a bit more tedious chore. As a developer I always welcome the opportunity to use development tools that may help in the development process. Following is a list of some useful …