hey i'm trying to do my homework for a computer science class, and im a bit stuck. When i run the program, the terminal window doesn't even show up, can anyone help me please. Thanks in advance.
class:
public class Grid
{
public Grid()
{
rows = 10;
columns = 10;
}
public String draw()
{
String r = "";
for(int i = 1; i <= rows; i++)
{
for(int j = 1; j <=columns; j++)
r = r + " _";
r = r + "\n";
}
return r;
}
private double rows;
private double columns;
}
driver:
public class Driver
{
public static void main (String[] args)
{
Grid test = new Grid();
for(int k =0; k ==100; k++)
{
System.out.println(test.draw());
System.out.print("\n\n");
}
}
}