Can someone turn my .java file into a zip please
/** * Lyann Serrano * July 30 2020 * This application is about encryption of any statement. * This program gets the word as input and it encrypts and * displays the encrypted word. */ package finalPaper; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Scanner; public class SecretCode { /** * This function is about getting the current date in the * format required in the encrypted statement * @return */ public static String getInitialDate() { // creating a formatter object with the format required in encrypted string SimpleDateFormat formatter = new SimpleDateFormat("yyyy MM dd"); // creating a date object Date date = new Date(); // returning the current date in the format which was created return formatter.format(date); } /** * This function is about getting the modified date in the * format required at the end of encrypted statement * @return */ public static String getEndingDate() { // creating a formatter object with the format required in encrypted string SimpleDateFormat formatter = new SimpleDateFormat("yyyy MM dd"); // creating a date object Date date = new Date(); // splitting the date w.r.t space to get year, month and days at separate indexes. String []splitted = formatter.format(date).split(" "); // parsing year, month and days to integers to perform arithmetics on it. int year = Integer.parseInt(splitted[0]); int month = Integer.parseInt(splitted[1]); int day = Integer.parseInt(splitted[2]); // incrementing the month month = (month+1); // following if statement is used because // if we run the program in 12th month, it should not show 13, it should show 1 if (month > 12) month = 1; // decrementing the day day = (day-1); // following if statement is used because // if we run the program on day # 1, it should not show 0, it should show 31 if (day < 1) day = 31; year = year-2000; // returning the modified date in the format which was created return ""+month + " " + day + " " + (year-1) + "" + year + ""; } /** * This function returns number of words in the passed sentence * @param sentence * @return */ public static int getNumberOfWords(String sentence) { // splitting the sentence w.r.t space, to get separate words at separate indexes String []splitted = sentence.split(" "); // returning the number of words return splitted.length; } /** * This function transforms the sentence into the required encrypted form * @param sentence * @return */ public static String transformSentence(String sentence) { // splitting the sentence w.r.t space, to get separate words at separate indexes String []splitted = sentence.split(" "); String newSentence = ""; String newWord = ""; // running loop till number of words for (int i=0;i<getNumberOfWords(sentence);i++) { // resetting the newWord to 0, because at this point // we will always setting up a new word newWord = ""; // setting last letter of original word as the first letter of encrypted word newWord += splitted[i].charAt(splitted[i].length()-1); // adding other words in same sequence in newWord for(int j=0;j<splitted[i].length() -2;j++) { newWord += splitted[i].charAt(j); } // adding the number in the new word newWord+= (i+1); // adding the letter at position length() -2 as the last word. // This if is checking if the word length >= 2 or not, because for single // letter words, this transformation is not possible. if ((splitted[i].length() -2) >= 0) newWord += splitted[i].charAt(splitted[i].length() -2); newSentence = newWord + " " + newSentence; } return newSentence; } /** * This function combines current date, transformed sentence * and the modified date and returns the complete final encrypted word. * @param sentence * @return */ public static String getSecretCode(String sentence) { // Combining current date, transformed sentence // and the modified date and returns the complete final encrypted word. return getInitialDate() + " " + transformSentence(sentence) + getEndingDate(); } public static void main(String[] args) { // Creating scanner object Scanner scn = new Scanner(System.in); // creating choice object String choice = ""; // displaying statement on console System.out.println("Secret Code Application # 1"); // displaying statement on console System.out.println("What English sentence would you like to convert to secret code # 1?"); do { // Taking input from user String sentence = scn.nextLine(); // Displaying transformed sentence on console. System.out.println(getSecretCode(sentence)); // displaying statement on console System.out.print("Would you like to continue? "); choice = scn.nextLine().toLowerCase(); }while (choice.equals("yes")); // displaying encrypted version of bye on console System.out.println(transformSentence("bye")); } }