APISonar


java.util.ArrayList.favoriteFood

> java > util > ArrayList > favoriteFood
java APIs util APIs ArrayList APIs favoriteFood APIs

Example 1
public void testSample()
  {
    String string = "myString";
    assertEquals( "Blue", string.favoriteColor() );
    assertEquals( "Pizza", string.favoriteFood() );
    assertEquals( "Jimmy Crack Corn", string.favoriteSong() );

    ArrayList<String> list = new ArrayList<>();
    assertEquals( "Red", list.favoriteColor() );
    assertEquals( "Pasta", list.favoriteFood() );
    assertEquals( "Redline", list.favoriteSong() );
  }