View RSS Feed

My Java Tips

  1. Validating ASCII character set

    by , 11-17-2011 at 07:04 PM (My Java Tips)
    In this post, I will write about how to validate characters of ASCII characterset.

    ASCII is a well know character set. It is a 7 bit character set and represents 128 characters. The printable character codes range from 33 to 126 inclusive. Sometimes you want to make sure that your strings do not contains non ASCII printable character. This is easy and can be done by writing a method for this.

    Review the static method below. It takes an ArrayList of String type and after ...