title: How do I concatenate two strings in Java?
body: <p>I am trying to concatenate strings in Java.  Why isn't this working?</p>
  
  <pre><code>public class StackOverflowTest {  
      public static void main(String args[]) {
          int theNumber = 42;
          System.out.println("Your number is " . theNumber . "!");
      }
  }
  </code></pre>