I'm trying to split a String.
I have been searching but I only found cases where split is used with an array, so for example if you have the string "i love stackoverflow" and use split , the output will be [i,love,stackoverflow]
Instead of that I have a string with this format "URL_cars_es" and I just want the es part of it, because I have multiple files into my database with different languages lets say I have "URL_cars_it" "URL_cars_nb" and so on. I just need to split and get only the nb,es,it so i can pass it to my StorageReference and get the different files
I am getting URL_cars_es by using below code
selecteditem = adapterView.getItemAtPosition(i).toString();
and I also need to trim/split it to only es.