text: Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.
  public int centeredAverage(int[] nums) { int large=0; int small=0; for(int n:nums){ large= Math.max(large, n); //large=n; } for(int n:nums){ small= Math.min(large, n); // small=n; } return (large-small); }
  Returning large - small is not what is asked for.
  You should make the sum of all values, then subtract large from it, then subtract small from it, then divide by the length of the array minus 2.
  That's the value to return.
  to find the result I would sum the nums subtract the min and the max of it then divide (int) by the number of items of the array -2 (array length)
  [-10, -4, -2, -4, -2, 0] becomes (-4 - 2 - 4 - 2)/4 = -12/4 = -3
  and
  [1, 1, 5, 5, 10, 8, 7] becomes (1+5+5+7+8)/5 but as integers 26(int)/5(int) = 5(int)
  Regards
  That's exactly what I said in the comment before yours.
  @guidii9,
  here's the code:
  Open in new window
  We value your feedback.
  Take our survey and automatically be enter to win anyone of the following:
  Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
  zzynx posts a hint, then waits six minutes and posts the complete solution with no interaction from the author.
  This is not how ExEx is supposed to work.
  Previous week I refrained from posting full code. Another "expert" did. (based on the hints I gave)
  I filed a request for attention.
  That was rejected since the author answered "No" to the question if it was home work.
  The poster of the full code got the majority of the points.
  Is that how EE is supposed to work?
  This time I posted the full code (knowing this is not home work) and I got a attention for request filed against me.
  Is that how EE is supposed to work?
  I look forward to the decision that will be taken...
  None of these questions are worth much, and the points we get are not worth the aggravation.
  I got a bundle of points from gudii9 last month, and I would give them all back if he would just grow up.
  I'm looking forward to some resolution as well.
  And the list of aggravated experts is growing:
  Open in new window
  Your approach was this (once again, badly indented) code:
  Open in new windowWhich is absolutely not similar.
  Why do you just repeat my code in your last comment?
  Why did Rgonzo1971 got points for just repeating me?
  @gudii9, I guess this was my last post on one of your questions...