Converting elements under List<String[]> to upper case in one go

  • A+
Category:Languages

I am using a List<String[]> with a few smaller case fields.

List<String[]> csvBody = reader.readAll(); 

My output should be of the same datatype List<String[]>.

Is there a possibility to convert every String in my Container to uppercase in a stretch?


Just iterate the strings:

List<String[]> csvBody = reader.readAll(); for (String[] strings : csvBody) {     for (int i = 0; i < strings.length; i++) {         strings[i] = strings[i].toUpperCase();     } } 

Comment

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: