Search:

Type: Posts; User: cutekill0

Search: Search took 0.29 seconds.

  1. [SOLVED] Help using addAll without using listCopy

    please I've been working on this for hours and I'm about to explode, I'm beulding a LinkedSeq<E> and I'm trying to create an addAll method, here's my class:


    // File: LinkedSeq.java based on the...
  2. Replies
    3
    Views
    1,750

    Re: DoubleArraySeq Help

    sorry, I didn't realized I only posted the first half of the code, here's what I have so far:


    public class DoubleArraySeq implements Cloneable
    {
    // Invariant of the DoubleArraySeq class:
    //...
  3. Replies
    3
    Views
    1,750

    DoubleArraySeq Help

    Hello guys, I'm trying to build this DoubleArraySeq program and the addAfter and addBefore methods are not working correctly and I can't figure out why please help



    public class DoubleArraySeq...
  4. Re: Test Fails but I don't know why, please help

    Thank you very very much :)
  5. Re: Test Fails but I don't know why, please help

    ok so I fixed some things and I'm passing most of my tests except the union tests


    public class Statistician implements Cloneable {
    /****************************
    * class invariant:
    * -...
  6. Re: Test Fails but I don't know why, please help

    well the failure in union is at assertTrue("Union not empty", w.length( ) == 6);
  7. Re: Test Fails but I don't know why, please help

    I'm very sorry, the tests that are failing are union, allNegative, compareTwoSmall, compareTwoMedium, unionSmall, addExtremes, and cloneEquals, I hope you can help me
  8. Test Fails but I don't know why, please help

    Hi everyone, I was doing this assignment and I though I had everything right until I had to run the Test program, here's my code:



    public class Statistician implements Cloneable { ...
  9. Replies
    24
    Views
    1,681

    Re: Can't run Game of Life programm

    that's one place I'm having trouble with, I'm not sure where I need to use them
  10. Replies
    24
    Views
    1,681

    Re: Can't run Game of Life programm

    the ranges: birthLow, birthHigh, liveLow, and liveHigh 4 in total my mistake
    For a birth to occur, the cell must be empty and the neighborhood density be in the birth range. The birth range can be...
  11. Replies
    24
    Views
    1,681

    Re: Can't run Game of Life programm

    ok but where should I initialize the other 5 variables?
  12. Replies
    24
    Views
    1,681

    Re: Can't run Game of Life programm

    that's one of my question, do I have to do the console.nextInt() in the same readInput method, or do I need to create a new one?
  13. Replies
    24
    Views
    1,681

    Re: Can't run Game of Life programm

    so now my program needs to read the parameters from standard input. The new inputs for this part are the values for the ranges, birthLow, birthHigh, liveLow, and liveHigh. I need to read the matrix...
  14. Replies
    24
    Views
    1,681

    Re: Can't run Game of Life programm

    Great idea, I'll try it out, thanks much :)
  15. Replies
    24
    Views
    1,681

    Re: Can't run Game of Life programm

    Its not really a problem, I was just trying to create an if loop trying to stop the program after just 2 inputs, but when I run the program and I write just 2 numbers, it just continues running...
  16. Replies
    24
    Views
    1,681

    Re: Can't run Game of Life programm

    I tried it and the program just waits for a third input, after a third input its when the program stops, I guess making it so it stops at 2 inputs would not matter
  17. Replies
    24
    Views
    1,681

    Re: Can't run Game of Life programm

    Hello again guys, I was cleaning up my code and doing tests and I wanted to ask if you recommend any way to stop the program if only 2 inputs are typed, like throwing an exception if the user only...
  18. Replies
    24
    Views
    1,681

    Re: Can't run Game of Life programm

    ok so I changed the printMatrix method to look like this

    private static void printMatrix(boolean[][] matrix)
    {
    for(int r = 0; r < matrix.length; r++)
    {
    for(int c = 0; c <...
  19. Replies
    24
    Views
    1,681

    Re: Can't run Game of Life programm

    Wow thank you very much, also on my printMatrix method the output should be a '-' for false and a '#' for true, any ideas how I can do this?
    Again thank you a lot
  20. Replies
    24
    Views
    1,681

    Can't run Game of Life programm

    Hello guys, I'm new here, I was trying my homework for computer science which consists of making a basic Game of Life program with a 2D boolean array and a Random number with a seed, this is what I...
Results 1 to 20 of 20