I am trying to concatenate strings in Java. Why isn\'t this working?
public class StackOverflowTest { public static void main(String args[]) {
This should work
public class StackOverflowTest { public static void main(String args[]) { int theNumber = 42; System.out.println("Your number is " + theNumber + "!"); } }