title: Existing condition into JAVA 8 stream
body: <p>How can i convert the below condition to Java 8 streams way ?   </p>
  
  <pre><code>    List&lt;String&gt; name = Arrays.asList("A", "B", "C");
      String id;
      if(name.contains("A")){
          id = "123";
      }else if(name.contains("B")){
          id = "234";
      }else if(name.contains("C")){
          id = "345";
      }
  </code></pre>
  
  <p>I am in process of learning Streams and was wondering how i can convert this one. I tried with foreach, map, filter but it was not getting at it</p>