SHARE
TWEET

Untitled

a guest Jun 16th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public static int sumSecondHalfItems(ArrayList<Integer> list) {
  2.         int sum = 0;
  3.         for(int i = 0; i < list.size(); i++) {
  4.             if(list.get(i)>= list.size())
  5.                 sum = sum + list.get(list.size()/2);
  6.         }
  7.         return sum;
  8.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top