Here I have the function tabulation code:
public static void Tabul() { for (double i = 0.2; i <= 2.8; i = i + 0.002) { double y; final double a = 2.3; if (i < 0.3) { y = 1.5 * a * pow(cos(i), 2); } else if (i < 2.3) { y = pow((i - 2), 2) + 6 * a; } else { y = 3 * a * tan(i); } System.out.println("x= " + i + " y=" + y); } } Now I need to create a private method with the values of у as the values of the array element. How to do this I can not understand. Tell me. you are welcome!
privatemethod with values ofуas the values of an array element". - yozh