Say I have an enum which is just

```
public enum Blah {
    A, B, C, D
}

```

and I would like to find the enum value of a string, for example `"A"` which would be `Blah.A`. How would it be possible to do this?

Is the [`Enum.valueOf()`](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Enum.html#valueOf(java.lang.Class,java.lang.String)) the method I need? If so, how would I use this?