Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

please help me fill out of what these comments want me to do. public class Cooki

ID: 3653353 • Letter: P

Question

please help me fill out of what these comments want me to do. public class Cookie { public void createCookie(String fileName,String cookieValue) throws IOException{ //Create a File object using the parameter fileName //Create a FileWriter object to enable writing to the file //Write the parameter cookieValue to the cookie file //Close the file } public void deleteCookie(String fileName) throws IOException{ //Create a File object using the parameter fileName //Delete the actual file using the File object } public void modifyCookie(String fileName, String cookieValue) throws IOException{ //Create a File object using the parameter fileName //Create a FileWriter object to enable writing to the file //Write the cookie value //Close the file } public String readCookie(String fileName) throws IOException{ String cookieVal = new String(""); //Create a File object //Read the contents of the cookie file BufferedReader in = new BufferedReader(new FileReader(fileName)); //Read the contents of the file. Use the variable cookieVal defined earlier //Assume the file contains a single line //Close the file //Return the cookie value return cookieVal; } }

Explanation / Answer

Please use eclipse or komodo Format the code and paste..its unreadable cant even find syntax errors