Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Loading a string array into J2ME List Class

  • 13-04-2004 09: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