Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ForTest {
- public static void main(String[] args) throws Exception{
- String str = "test string";
- System.out.println("test");
- for (int i=0; new Test() {public boolean m(int i){return (i<10) ? true : false;}}.m(i); i++)
- System.out.println(i);
- }
- }
- interface Test {
- boolean m(int i);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement