Search:

Type: Posts; User: Junky

Search: Search took 0.11 seconds.

  1. Replies
    10
    Views
    4,785

    Re: PigLatin translator help

    I just had a thought. If your phrases array has a length of 10 and you only add 3 phrases to it then the other 7 slots will be null. However your loop iterates over the entire array and you try and...
  2. Replies
    10
    Views
    4,785

    Re: PigLatin translator help

    On line 32 something is null. Time for you to debug your code. Add a print statement(s) before that line and print out all the variables to find out which is null. Then work out why it is null.
  3. Replies
    10
    Views
    4,785

    Re: PigLatin translator help

    You haven't tried very hard. I posted the three constructors the StringTokenizer class has. You are trying to call the String array, String constructor which does not exist.
  4. Replies
    10
    Views
    4,785

    Re: PigLatin translator help

    Oh come on. What is the first parameter you are passing to the StringTokenizer constructor?
  5. Replies
    10
    Views
    4,785

    Re: PigLatin translator help

    Parameters to constructors and methods must match in number, type and order. StringTokenizer has 3 constructors:
    String
    String, String
    String, String, boolean

    Are you using any of those...
Results 1 to 5 of 5