About returning Lists in extension

You can also try,

public YailList ToReturnNumbersFromOneToTen(){
    ArrayList<Integer> list = new ArrayList<Integer>();
    for(i=1; i<=10; i++){
        list.add(i);
    }
    return YailList.makeList(list);
}
1 Like

I had used the exact thing in a post above, and I've also showed the code there. Later I also said that I'd rather return List<Integer> cuz that is also working.

Actually the thing is,

My Laptop is under repair and I'm using MIT AppInventor on an android device. AppInventor works on mobile phones  without  using Desktop Site option. Never try to use AppInventor in Desktop Site if you try to use it in your mobile phone, cuz Desktop Site doesn't allow you to enter values of any variables in the Blocks editor.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.