get values from a list <String> java code example Example: java string[] list get java string[] list get