Loops

  • How to loop on an array of Strings:
    String[] str = { "one", "two", "three" };
    for( String str : strs ) {
        System.out.println( str );
    }