reverse() / Reference

  • String sa[] = { "OH", "NY", "MA", "CA"};
    sa = reverse(sa);
    println(sa);
    // Prints updated array contents to the console:
    // [0] "CA"
    // [1] "MA"
    // [2] "NY"
    // [3] "OH"