Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Loading a string array into J2ME List Class

Options
  • 13-04-2004 9:53am
    #1
    Closed Accounts Posts: 7


    Hi - need some urgent help.

    Trying to use List to display the output of a string array on screen as an IMPLICIT list.
    If I declare exactly what strings are to be in the listArray when I declare it I can use the method without any trouble and it works fine.

    list = new List("Staff: ", List.IMPLICIT, listArray, null);

    However, I want to load the up the String array listArray with other strings in a for loop:

    for(int i = 1; i <5; i++)
    {
    listArray = inputString;
    }

    When I try this my program stalls - am i messing up with how I'm loading the string or is there another problem? Will List accept a string array this is compiled in this way?

    Am programming for Palm BTW.

    Cheers!


Comments

Advertisement