Search:

Type: Posts; User: popnfresh

Search: Search took 0.17 seconds.

  1. Replies
    3
    Views
    461

    Re: Help with Schedule Generator

    The loop occurs where I thought it was happening.
    I figured out that it happens when only two teams have a count of 3 left, but those two teams have already played each other twice, meaning that...
  2. Replies
    3
    Views
    461

    Help with Schedule Generator

    This is a recreational project for my fantasy football league. I will try to very thoroughly explain my thinking and what I have done so far.
    I'm trying to create a random schedule generator. But...
  3. Replies
    1
    Views
    142

    Enum with strings

    I have a quick question which shouldn't be too hard to answer.

    So in my main function I take a user input for which enum element to use.


    So I have String type = scanner.next();

    User input:...
  4. Replies
    4
    Views
    129

    Re: Null Pointer Exception. Why?

    It is now. I didn't initialize the ArrayLists. Thanks for the help
  5. Replies
    4
    Views
    129

    Re: Null Pointer Exception. Why?

    I just printed all the information from temp and it prints out all the correct information.
  6. Replies
    4
    Views
    129

    Null Pointer Exception. Why?

    I have the following code and keep getting a null pointer exception at the last line of this code. I cannot figure out why. If anyone can help me out it would be appreciated

    This is my class...
  7. Replies
    3
    Views
    276

    Re: Array List help

    K. Thanks. Got it figured out. I was doing it right (not the way posted above), I was just missing a proper cast
  8. Replies
    3
    Views
    276

    Array List help

    I have an array list of objects and I want to use them in a function call. I want to effectively do this:


    apples[i].function();

    but am unsure how to do this with an array list. Please help.
  9. Replies
    2
    Views
    181

    Re: Passing a parameter of current object

    Ah. I was doing that but just realized the problem lies with my second parameter
  10. Replies
    2
    Views
    181

    Passing a parameter of current object

    I have the following problem. I have two classes named apple and orange. In orange I have a function:


    functionX(Apple p){
    }


    public Apple() {

    functionX(????);
Results 1 to 10 of 10