03 October 2010

Tip for Today

You can write code as anonymous

this code you may writing like....

MyClass mc1 = new MyClass();
mc1.justShow();

you want to just call method of you class need to further requirement. you can write code like this

(new MyClass()).justShow();

No comments:

Post a Comment