Question: Can you do this java question using my previous question DOING 150 Chapter 4 String Land Based on this, we seek a model class (call
DOING 150 Chapter 4 String Land Based on this, we seek a model class (call it Cipher) with the f Cipher Fields public static final String ALPHABET The characters of the plaintext (and the ciphertext) characters (value ABCDEFGLMNOPORSTUVWXYZ Cipher Constructor public cipher (String k) Construct an instance having the given key. Cipher Methods public String Encrypt (String note) Encrypt the given string and return the ciphertext. belong to this set of public String Decrypt (String note) Decrypt the given string and return the plaintext. D4.2.b -File Storage File storage in the Android platform is similar to that of most other operatin smallest unit of storage is the file, and in order to organize files and provide a storage area is divided into directories (aka folders). The storage medium is non-volaile not lose content if power is lost) and is typically divided into internal and extenal internal area is built into the device and files stored in it by an app are only accessble app (and will be removed when that app is uninstalled). The external area is remoralie an SD card) and files in it can be shared by different apps. systems T Your activity class has methods (inherited from the parent activity class) that alos code to access both the internal and the external areas. Once you gain access to the root directory of either area, the File API allows you to that area as you wish. You can, for example, divide it into directories; remove all files and directories to determine their names and dates created; and view ot directoces chnge d to it ot al permissions of each entry. It also allows you to create a new file and write contents of an existing file. Since this rich API is already available in the platform, we don't model for it. Any needed functionality can be accessed directly from the activany need to
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
