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);
}
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);
}
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 usingDesktop Site
option. Never try to use AppInventor inDesktop Site
if you try to use it in your mobile phone, cuzDesktop 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.