I took the answer of this question. My code is as follows:
import java.security.*;
..
MessageDigest md = MessageDigest.getInstance("MD5");
When I try to run it I get
Error:(11, 53) java: unreported exception java.security.NoSuchAlgorithmException; must be caught or declared to be thrown
Is this an issue with Java 11?