Search:

Type: Posts; User: mlan

Search: Search took 0.22 seconds.

  1. Thread: Array help

    by mlan
    Replies
    11
    Views
    1,294

    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
    1,294

    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
    1,294

    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
    1,294

    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
    1,294

    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
    1,294

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

    by mlan
    Replies
    2
    Views
    684

    Re: Array help

    Ohh!
    I didn't call it into the main of the program, yes?
  8. Thread: Array help

    by mlan
    Replies
    2
    Views
    684

    Array help

    package lab5;

    public class ArrayFirst {

    public
    static void main(String[] args) {

    for (int i=0; i<args.length; ++i)
    System.out.println(args[i]);
    float[] a = {0.1f, 1.2f, 2.3f, 3.4f};
  9. Thread: Arrays

    by mlan
    Replies
    2
    Views
    604

    Re: Arrays

    helloworld922:
    I actually got it solved, thank you though :D
  10. Thread: Arrays

    by mlan
    Replies
    2
    Views
    604

    Arrays [SOLVED]s

    Hello,

    I'm working on a new project about arrays, yay!
    I'm given a length of 4 and set that to a.
    I'm then suppose to make a different int b = a and make another c = the reverse of b, but I...
  11. Thread: movement

    by mlan
    Replies
    4
    Views
    773

    Re: movement

    Thanks, I'll modify it.
  12. Thread: movement

    by mlan
    Replies
    4
    Views
    773

    Re: movement

    Uh.... I meant for a program....
    I have to construct a program for a robot that moves around and its position and battery life are recorded back to the public.
  13. Thread: movement

    by mlan
    Replies
    4
    Views
    773

    movement

    How do you make an object, such as a robot, move from left to right and forward and back?

    With copeg's tip,
    I'm constructing a robot that has to move from right to left and forward and back.
    My...
  14. Replies
    3
    Views
    699

    Whats wrong with my code?

    public class Robot {
    public Robot(double x, double y) {
    x = 0.0;
    y = 0.0;
    }

    public double getX() {
    return X;
    }
  15. Thread: Robot help.

    by mlan
    Replies
    1
    Views
    576

    Re: Robot help.

    Hi!
    So, I've been working on it and I think I did somethings right...
    But now my question, main concern is:

    How do I get the robot to turn/move?
  16. Thread: Robot help.

    by mlan
    Replies
    1
    Views
    576

    Robot help.

    Hi!
    I'm new to this programming stuff and I'm currently struggling.
    I was given a project to construct a Robot with a fully charged battery and to make it move with certain buttons.

    I was given...
  17. Thread: Hello!

    by mlan
    Replies
    1
    Views
    371

    Hello!

    Hey, I'm Missa.

    I'm currently a college student and started taking Java programming concepts this semester.
    In the beginning I was doing ok and now I'm struggling very much.
    I don't want to drop...
Results 1 to 17 of 17