I'm new to Java/Android development. I need to get the specific values from my string array.
String PictureTest[] = {"a.jpg","b.png","c.txt", "d.wav", "e.tga"};
This array is diffrent every time. I need to get all values which contain .jpg, .png, .tga and form a new array with them.
System.out.println(Arrays.toString(PictureResult));
//It prints "a.jpg, b.png, e.tga"
UPD: Thanks everyone for this quick and useful responses!