Skip to content

Instantly share code, notes, and snippets.

@carlism
Created July 28, 2009 18:12
Show Gist options
  • Save carlism/157574 to your computer and use it in GitHub Desktop.
Save carlism/157574 to your computer and use it in GitHub Desktop.
private ArrayList<Integer> d = new ArrayList<Integer>();
@Test
public void testSort() {
this.d.add(5);
this.d.add(10);
this.d.add(1);
Collections.sort(this.d); // -&gt; I&apos;m getting a type mismatch here
assertEquals(1, this.d.get(0).intValue());
assertEquals(5, this.d.get(1).intValue());
assertEquals(10, this.d.get(2).intValue());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment