I want this (-) to appear next to each other 30 times...Why isnt this happening? i don't understand loops!!:confused:
Code:for (int i=0; i<=30; i++)
{
System.out.println( '-' );
}
Printable View
I want this (-) to appear next to each other 30 times...Why isnt this happening? i don't understand loops!!:confused:
Code:for (int i=0; i<=30; i++)
{
System.out.println( '-' );
}
That code will print more than 30 times currently...
That could be the one that brings about the Apocalypse, though!
Could be.
But I'm really confusing over here, "(-) to appear next to each other 30 times". How can we do this.
No, I suspect the OP has taken your code and left...without even looking back.
So Samari413 took JosAH's invaluable intellectual property and is getting rich of it somewhere...
:)
Yep.
I can hear the cash registers from here.
Dang, while I only charge euro 0.25 for every System.out.println( ... ) used (a System.out.print( ... ) only costs euro 0.20 per use) That darn scrooge ... that costs me euro 0.20 ... while I just wanted to be filthy rich and surrounded by scantily clad women all day and have lots of Grolsch available at the snap of my fingers ...
kind regards,
Jos (<--- poor old sod ;-)