4
Contributors
5
Replies
6
Views
8 Years
Discussion Span
Last Post by __avd
0
for(int i = 1; i<=50; i++)
{
       if( i%10 == 0 )
       {
               System.out.println(MyString.charAt(i-1));
       }
}

Those double equal stuffs made me a big headache when I switched to java too.
Also you should verify if you can make an inner and outer loop by 10 and 5 before doing this to not do unnecessary stuff. Of course it's not always possible.

0

My program worked. Thank you very much for all of those who helped me.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.