I've changed what I had from before for this portion:
Random r = new Random();
for (float a=r.nextFloat(); x>0.01f; x=r.nextFloat()) // the local variable a is never read
...
Type: Posts; User: mlan
I've changed what I had from before for this portion:
Random r = new Random();
for (float a=r.nextFloat(); x>0.01f; x=r.nextFloat()) // the local variable a is never read
...
I am given an error message at a.append, I've taken in what you've said and changed it to a Float, the a is accepted but the append, now states that it is a float and not a Float, but I changed it to...
Ok, I understand.
I expect my class to plot a random list of numbers of floats given in an array.
I was given FloatListDemo to base my FloatList off of so that they would work together.
I'm...
I don't understand how this will help me understand why the countFloats and append don't work.
Example code using FloatList:
package lab6;
import java.util.Random;
/**
* Demonstrates use of the classes FloatList and ArrayPlot. You need not
package lab6;
import java.sql.Array;
import java.util.Random;
/**
* A list of floats that can grow to be as long as necessary.
* @author Melissa, Colorado School of Mines.
*/
public...