I got a one dimensional array of strings in java, in which i want to change all strings to lowercase, to afterwards compare it to the original array so i can have the program check whether there are no uppercase chars in my strings/array.
i've tried using x.toLowercase but that only works on single strings. Is there a way for me to convert the whole string to lowercase?
Kind regards, Brand
arraylist.stream().map(s -> s.toLowerCase()).collect(Collectors.toList())
may help you