/** * Author: Josiah Yoder et al. * Class: SE1011-011 * Date: 11/7/13 3:42 PM * Lesson: Week 10, Day 2 * * The previous version used class methods, * this one uses instance methods. */ public class RandomFun051_10_2 { int[] randomNumbers; public RandomFun051_10_2() { randomNumbers = makeLookupTable(); } public int[] makeLookupTable() { // TODO: Implement this. return null; } public String askUserForInput() { // TODO: Implement this. return null; } public int[] encryptData(String input) { // TODO: Implement this. return null; } /* Way-too-simple encryption: Replace each letter with a random integer. * args -- ignored argument. (Value comes from the program that calls main) */ public static void main(String[] args) { RandomFun051_10_2 fun = new RandomFun051_10_2(); String input = fun.askUserForInput(); int[] encryptedData = fun.encryptData(input); // If compiler complains about // static context, // give it an instance of the object fun.askUserForInput(); } }