// Tyler Rigsby, CSE 142 // Allows encoding and decoding of secret messages via a Caesar Cipher import java.util.*; public class CaesarCipher { public static void main(String[] args) { System.out.println("Welcome to the CSE 142 Caesar Cipher program!"); Scanner console = new Scanner(System.in); System.out.println("Enter your message to encode: "); String message = console.nextLine(); System.out.print("Please enter the key: "); int key = console.nextInt(); encode(message, key); } // will encode the message with the key; for now, just prints the first character public static void encode(String message, int key) { char c = message.charAt(0); System.out.print(c); } }