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”
Files that Make You Smile
Files. Those floppy, large things full of paper that used to be the bane of office workers are now electronic. No more lifting stacks of paper and having a couple of papers fall on the floor and get out of order! Instead we have to keep even more files in order inside folders, inside other folders on our computers. Not surprisingly, we have programs that can read and write files so we don’t have to do everything manually. Continue reading “Files that Make You Smile”
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.