Seems like I can't escape the problem of having 1 or 2 errors when I compile my prgram. Here's what I have:
public class calculateFunction
{
public int calculateValue (int x)
{
int y=0
y=(int)(x+(x*x) + Math.pow(2,x));
return y;
}
public void printStars ()
{
for (int j; j < 10; ++j)
{
int y = calculateValue(j);
y/=10;
System.out.println("PrintFor: +j");
for (int I=0;i<y;i++)
System.out.print("*");
System.out.println ("\n\n");
}
}
public static void main (
String[] args)
{
calculateFunction cal = new calculateFunction ();
Cal.printStars();
}
}
The error message I receive is:
any ideas as to why this error continously comes up?
Thanks,
Dwayne
