String[] trees = { "lychee", "coconut", "fig"};
trees = shorten(trees); // Remove the last element from the array
println(trees); // Prints "lychee coconut"

trees = shorten(trees); // Remove the last element from the array
println(trees); // Prints "lychee"
