fork download
  1. List<Integer>ls=new List<Integer>();
  2. Integer i=0;
  3. for(integer i=1;i<=20;i++){
  4. ls.add(i);
  5. }
  6. system.debug(ls);
  7. while(i<20){
  8. if(Math.mod(i,2)==0){
  9. ls.add(i);
  10. }
  11. else{
  12. system.debug('out of limit');
  13. }
  14. system.debug(ls);
  15. }
Success #stdin #stdout #stderr 0.01s 7780KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
./prog:1: expected expression