Simple Java program implementing a to and from binary translation function.