Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* https://io.hsoub.com/go/32047 */
- // Before
- Test t1 = new Test();
- t1.method1();
- t1.method2();
- t1.method3();
- // After
- Test t2 = new Test(){{
- method1();
- method2();
- method3();
- }};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement