Search:

Type: Posts; User: GregBrannon

Search: Search took 0.12 seconds.

  1. Re: how to call an object with a string or variable?

    Okay, rather than an if/switch statement with 4,000+ possible results, I recommend some kind of an event-driven system that responds appropriately to the 'result' events as they occur. An EventBus...
  2. Re: how to call an object with a string or variable?

    I'm not sure I understand, but why can't you just use a switch or an 'if' statement to create the object based on 'result'?

    if ( result.equals( "car" )
    {
    new Car();
    }
    Can you create a...
Results 1 to 2 of 2