title: Multiple conditions with.ReplaceAll
body: <p>Is there any way to add multiple conditions to the .replaceAll?
  Right now I am trying to convert the letters on a phone to the numbers they correlate to using .replaceAll. 
  So far the snippet looks like </p>
  
  <pre><code>Scanner kbIn = new Scanner(System.in);
  
  System.out.print("Enter the phone number: ");
  
  String fakeNum = kbIn.nextLine().toLowerCase();
  
  String returnNum = fakeNum.replaceAll("[abc]", "2");
  </code></pre>
  
  <p>So when you enter an a, b or c, it changes it to a "2" in the output. My question is- can you set multiple of these conditions in one line? Lets say I wanted to have d, e and f translate to 3 when printed. Can I do something like </p>
  
  <pre><code>String returnNum = fakeNum.replaceAll("[abc]", "2" &amp;&amp; "[def]", "3");
  </code></pre>
  
  <p>I know this doesn't work- I am just using the boolean operator to symbolize that I am trying to work both of these conditions upon fakeNum. Is there a way to do this? Thanks a lot. </p>