import java.io.*;
import java.math.*;
import java.util.*;
public class GrowthofaFunction
{
public int calculateFunction(int x) {
return 0;
}
/**
* @param args
*/
public static void main(String[] args)
{
public void calculateFunction();
{
final int x;
final int y1;
final int y2;
final int y;
Scanner stdin = new Scanner(System.in);
System.out.print("Enter value for x: ");
x = stdin.nextInt();
y1 = x + (x*x);
y2 =(int) (Math.pow(2,x));
y = y1 + y2;
return y;
// printStars has input x
for (int i = 0; i <= 0; i++)
{
y = stdin.nextInt();
i = y/10;
}
System.out.print("*");
return y;
}
}
}
There is something wrong with my code and I still can't figure it out. Can someone tell me? I am just suppose to calculate an function and printStars.