Help for this page

Select Code to Download


  1. or download this
       public abstract static class MapBlock {
        public Object[] run(Object[] list) {
    ...
        // Thanks for the idea to [jdporter]
    
        }
    
  2. or download this
        Object[] new_list = 
            map(new MapBlock() { 
    ...
                  return str.toUpperCase();
                }
            }, objects); // end of MapBlock, second param objects