Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

A lil help!

Options
2»

Comments

  • Registered Users Posts: 885 ✭✭✭clearz


    You could remove the use of a string or StringBuffer altogether and only use characters.
        public static void main(String[] args)
        {
            for ( int i=0,t=1;i<=10;System.out.print((++i % t != 0) ? '*' : '\n'))
                if(i % t == 0){i=0;t++;}
        }
    


  • Registered Users Posts: 4,003 ✭✭✭rsynnott


    GreeBo wrote:
    Is it smart enough to catch looped substring calls?
    If it is thats impressive.

    I would have thought so. I'm not really sufficiently interested to poke around with a disassembler tho :)


Advertisement