Search:

Type: Posts; User: javapenguin

Search: Search took 0.08 seconds.

  1. Re: Having trouble figuring out how to recursively do this.

    Ok, right now in the DFA, I'm trying to map the state number to its set of HashSets, though I'll probably use an ArrayList as there could be duplicates.

    I'm getting very close to getting done, or...
  2. Re: Having trouble figuring out how to recursively do this.

    Ok, my getNewSet3 method should be a good starting point. (I'm so out of it.)


    import java.util.Scanner;
    import java.io.File;
    import java.io.FileNotFoundException;
    import...
  3. Re: Having trouble figuring out how to recursively do this.

    Ok, I'm a bit farther along now. However, I'm wondering how to recursively do something.

    I have like 800 lines of code and since the error, or the coding problem, is the latest part in the...
  4. Re: Having trouble figuring out how to recursively do this.

    In a way yes. Another problem is that it often seems to be overriding my old sets.

    What I was doing was trying to get the sets gotten with getNewState() or whatever I called it, to once more do...
  5. Re: Having trouble figuring out how to recursively do this.

    Never mind the epsilon thing. That part has been taken care of.

    This is very hard to explain.

    Suffice it to say that once I get the first group of HashSets, I then take each individual...
  6. Re: Having trouble figuring out how to recursively do this.

    Ok, now it's a bit better. However, in addition to me possibly not supposed to be autoadding the 0's other than for the Epsilon, I need help trying to make it keep going. So far all it will do is...
  7. Re: Having trouble figuring out how to recursively do this.

    It's so weird. I performed the toString on it for just the elements that were originally there and it did fine, I think it did anyway.

    I did it in the for loop for all of the elements in the...
  8. Re: Having trouble figuring out how to recursively do this.

    I found the problem. I, probably due to lack of sleep, somehow mistakenly didn't realize that I was passing the same HashSet to the methods that I already had and then possibly modifiying them...
  9. Re: Having trouble figuring out how to recursively do this.

    What is causing that error? Why doesn't anyone usually reply? .

    What's a concurrent modification exception
  10. Re: Having trouble figuring out how to recursively do this.

    Now it will compile but I'm still working on some of the kinks. Now I was trying to repetitively apply the methods already used, the getClosure(), for the newly created HashSets in the HashSet...
  11. Re: Having trouble figuring out how to recursively do this.

    My biggest issue is how to make sure that I know if I've already found the character, hence that I shouldn't keep trying to follow it in the recursive call.

    I thought of passing a boolean as a...
  12. Re: Having trouble figuring out how to recursively do this.

    Ok, I got a method to do that, though is there any possibility of that return statement causing it to end too early when only one of them hits null but others could keep going?

    It doesn't appear...
  13. Re: Having trouble figuring out how to recursively do this.

    Ok, I've made a new method. Some of the old ones can be later removed. This one won't compile because it's missing a return statement in the if part.

    What I want is the return to return it...
  14. Having trouble figuring out how to recursively do this.

    It's me. I had posted here but that issue of the readin was done so I marked the thead as solved, or I'm going to soon. However, now I'm wondering how to recursively calcualate something. I'm...
Results 1 to 14 of 15