Search:

Type: Posts; User: EasyE

Search: Search took 0.07 seconds.

  1. Re: Why is my Quick Sort using Iteration not working properly?

    I solved the problem with thrown ArrayIndexOutOfBounds by setting the value of i = 1 in my for loop
    EDIT: I now know by doing this my checkSortedArray() no longer detects unsorted arrays. Currently...
  2. Re: Why is my Quick Sort using Iteration not working properly?

    When the iterative function wants to work seems totally random, I don't see a pattern. If it was every other call that the function didn't work I would assume its in the while loop, but the program...
  3. Re: Why is my Quick Sort using Iteration not working properly?

    When the array isn't sorted from [lowest,...,highest] in BenchmarkSorts.java runSorts() method is where the error happens.


    private void runSorts() throws UnsortedException {
    // Runs iterative...
  4. Why is my Quick Sort using Iteration not working properly?

    I am currently trying to benchmark a Quick Sort algorithm using both Iteration and Recursion. My problem is with my output, my recursive function works properly and sorts the elements. My iterative...
  5. Replies
    4
    Views
    4,477

    Re: Help with traffic light program and threads

    My program runs and threads work, what is ThreadLocalRandom good for? Still learning Threads and Multithreading
  6. Replies
    4
    Views
    4,477

    Traffic Light program and Threads problem

    Edit: I may have put this in the wrong thread previously


    I need help starting a new thread after I stop the current thread. I keep getting IllegalThreadStateException and I don't know how to fix...
  7. Replies
    4
    Views
    4,477

    Help with traffic light program and threads

    I need help starting a new thread after I stop the current thread. I keep getting IllegalThreadStateException and I dont know how to fix it.

    Exception happens at...
  8. Replies
    3
    Views
    1,674

    Help with recursion

    I was wondering if someone could show me how to turn my code into a recursive method to build my binary tree. I am new to recursion and it doesn't make a whole lot of sense to me.


    ...
  9. Re: java.land.IndexOutOfBoundsException: Index -1 out-of-bounds for length 0

    The problem was with with PolyFile.txt and the addTerm() inside the class Polynomial.java.

    so the original PolyFile.txt I had was:
    4.0 3 2.5 1 8.0
    5.0 4 5.0
    4.0 4 5.7 2 8.6

    and the...
  10. Re: java.land.IndexOutOfBoundsException: Index -1 out-of-bounds for length 0

    null is printing at Main.java:56 inside the processPolyList(). I think the problem is with Main.java:54



    public static void processPolyList() {
    try {
    ArrayList<String> a = fromFile();
    ...
  11. java.land.IndexOutOfBoundsException: Index -1 out-of-bounds for length 0

    SOLVED

    My Exception is thrown at Main.java:42 and I have racked my brain trying to figure out how to fix it


    Output



    null
Results 1 to 11 of 11