How to convert an ArrayList to array in Java
Nov 25
Effective programming and blogging tips by Zaheer Paracha
Nov 19
Blogging affiliate, amazon, apture, Blogging 5 Comments
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 every blog post. On the other hand, this vast jungle of products can also be overwhelming for bloggers who naturally want to spend their time on writing post not searching for related products.
Unfortunately, Amazon did not offer any help to bloggers to easily create affiliate-links for its products. Every affiliate has to find related products using their keywords and then manually create the link into the articles. This is laborious and cumbersome exercise.
But now there is a better alternative. More
Nov 17
Java Java, RegEx, Regular Expression 7 Comments
My earlier post on how to validate email address, SSN and phone number validation using Java regex still attracts 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 beneficial to this blog readers to show how regular expression can be used to validate date in java.
First I’ll show you how to validate date using java reg ex in US format and later I’ll show you how that same logic can be applied to validate date in English format (used in most countries outside North America).
More
Nov 09
Nov 02
Java Java, RegEx, String, validation 2 Comments
One of the routine tasks in many Java applications is to convert a string to a number. For instance, you may have a form where user submits his or her age. The input will come to your Java application as a String but if you need the age to do some calculation you need to convert that String into a number.
More