title: Can one convert a String to an enum value?
body: <p>I have got code like this:</p>
  
  <pre><code>BufferedReader in = new BufferedReader(new FileReader("C:\file.txt"));
  String text = in.readLine();//lets say text is now "asd"
  </code></pre>
  
  <p>Now after that i have got a method:</p>
  
  <pre><code>private static void doSomething(Enum word){
      ...
  }
  </code></pre>
  
  <p>Is it possible to somehow convert this text into an Enum?</p>