Is there a simpler way to rewrite this loop? Something with less code.
Any help is appreciated.

```
       for(int i=0; i< 50; i++){
         if(i>=0 && i<10){
            method(arr[0]);
         }
         if(i>=10 && i<20){
         method(arr[1]);
         }
         if(i>=20 && i<30){
         method(arr[2]);
         }
         if(i>=30 && i<40){
         method(arr[3]);
         }
         if(i>=40 && i<50){
         method(arr[4]);
         }

     }

```