Search:

Type: Posts; User: cmh0114

Search: Search took 0.08 seconds.

  1. Replies
    12
    Views
    7,155

    [SOLVED] Re: toString() method

    The toString() method is customizable by you. If you create a class, you should include a toString() method. It returns a String, and in the method, you customize what you want the string to be. ...
  2. Replies
    7
    Views
    9,529

    Re: Can a for loop work with random number?

    public void kangarooJump(Kangaroo aKangaroo)
    {
    ranNumber.nextInt(7);
    for (int jumps = 0; jumps < getRanNumber(); jump ++)
    {
    aKangaroo.jump();
    }
    ...
  3. Replies
    5
    Views
    6,269

    Fibonacci Spiral Help?

    I'm trying to write a Java program that will display the Fibonacci Spiral as shown here . For right now, I just have it printing the starting coordinates of the rectangle that's being drawn, along...
Results 1 to 3 of 3