Please see - http://www.javaprogrammingforums.com/java-programming-tutorials/549-java-variable-conversions.html