the screen. The argument * must be an array of two integers. After the method returns, the array * contains the x and y location in that order.</p> * * @param location an array of two integers in which to hold the coordinates */ public void getLocationOnScreen(@Size(2) int[] location) { getLocationInWindow(location); final AttachInfo info = mAttachInfo; if (info != null) { location[0] += info.mWindowLeft; location[1] += info.mWindowTop; } }
i++) { int number = arrayOfNumbers[i]; // Body } for (Iterator<Integer> iter = listOfNumbers.iterator(); iter.hasNext(); ) { Integer number = iter.next(); // Body }