new to programming but trying to assign to my double variable inside my for loop. Basically I need to use Math.abs and Math.sin, which is sort of throwing me off. Any help is appreciated. If i need to provide any more information please let me know.
double[] xValues = new double[arrayAmount];
double[] yValues = new double[arrayAmount];
xValues[0] = minimumValue;
for (int index = 0; index==arrayAmount; index++)
{
yValues = 20.0 * Math.abs((Math.sin(xValues))); // java saying this is wrong
}