Code: Select all
public class TestCode {
public TestCode myMethod(){
TestCode tc1 = new TestCode();
TesdtCode tc2 = new TestCode();
return tc1;
}
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
TestCode tc3 = new TestCode().myMethod();
( I tried to find something about this type of return in javaDocs, but I didn't see anything more than a here it is!)
Thanks