Search:

Type: Posts; User: mlan

Search: Search took 0.08 seconds.

  1. Thread: Array help

    by mlan
    Replies
    11
    Views
    2,999

    Re: Array help

    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
    ...
  2. Thread: Array help

    by mlan
    Replies
    11
    Views
    2,999

    Re: Array help

    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...
  3. Thread: Array help

    by mlan
    Replies
    11
    Views
    2,999

    Re: Array help

    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...
  4. Thread: Array help

    by mlan
    Replies
    11
    Views
    2,999

    Re: Array help

    I don't understand how this will help me understand why the countFloats and append don't work.
  5. Thread: Array help

    by mlan
    Replies
    11
    Views
    2,999

    Re: Array help

    Example code using FloatList:



    package lab6;

    import java.util.Random;

    /**
    * Demonstrates use of the classes FloatList and ArrayPlot. You need not
  6. Thread: Array help

    by mlan
    Replies
    11
    Views
    2,999

    Array help

    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...
Results 1 to 6 of 6