Julius Caesar was worried. He needed to get a letter back to Cicero, the consul of Rome, but it had to travel through enemy territory. His solution? Shift every letter to the third letter after it, wrapping around so that A became D and Y became B. Here we’ll implement his idea in a computer program. Continue reading “Traditional Caesar Cipher”
ASCII Fun
ASCII art like the greeting above is common, but ASCII characters are useful for a lot more. Represented in a Java in a manner identical to the first 128 unsigned integers, they can be substituted for ints at any time, and ints 32 -126 inclusive can be cast to chars and printed. While limited compared to the unicode set of characters (ASCII can’t represent á, for example), ASCII is the workhorse of most file systems.