Demo - list.add(string System.out.println\"Current Elements System.out.println for(int i = 0 i < list.size i System.out.println(list.get(i

Demo - list.add(string System.out.println"Current Elements...

This preview shows page 1 out of 1 page.

/** * Tests out {@link OrderedStringListType}. */ public class Demo { public static void main(String[] args) { String[] strings = {"pineapple", "chair", "television", "life", "coffee", "blanket", "skyscraper", "door", "game", "floor", "chair2", "Mirror", "light", "[email protected]"}; OrderedStringListType list = new OrderedStringListType(); for(String string : strings) { System.out.println("Begin add: " + string); System.out.println("-----------------");
Image of page 1

You've reached the end of your free preview.

Want to read the whole page?

  • Spring '14
  • String String

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture