you are right, wrong example. But here's my code:
public class TestClass {
public static void main(String[] args){
String
test = "yoho!";
System.out.println("foo" + test + "bar" + args[0]);
}
}
and here is what decafe makes of it
public class TestClass {
public TestClass(){
}
public static void main(String[] args){
String test = "yoho!";
System.out.println("foo" + test + "bar" + args[0]);
}
}
Why not the following?
System.out.println(new StringBuffer("foo").append(test).append("bar").append(args[0]).toString());