September 26th, 2010, 02:23 PM
Loop Help Please
For comp sci class, we have to make a program. For one part of the program it requires you use "*", to make the y-axis of a graph. The teacher wrote on the board how to do it, but I can't remember what he did. So for that part of the program, you have to use loops to make it. I want the code to do this.
// The "Lol" class.
public class Lol
static Console c; // The output console
public static void main (String args)
c = new Console ();
for (int k=1; k<10; k++)
// Place your program here. 'c' is the output console
} // main method
} // Lol class
This is what I tried, but when I run it nothing happens. The screen is just blank. So I just want to know what I have to fix to make the loop work. The loop has to make a certain amount "*".
Please and thank you.
September 26th, 2010, 04:44 PM
Re: Loop Help Please
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.