check out your first method Sort... did u mean to delcare another m_in array because your static int[] member is never being initialized and used correctly in the program