Java error: void cannot be converted to String
Your function has no return value void and you try to assign it to a string variable, that is what the error message means. So change: to and So the class looks like: BTW: Take care of Java’s naming convention. Class names should be subjects. EDIT: Because your encrypt message throws an exception, you have … Read more