import java.util.*;
class Ideone {
public static void main
(String[] args
){ String[] array
= {"01.um",
"02.dois",
"03.tres"};
for(int i = 0; i < array.length; i++)
array[i] = array[i].split("\\.")[0];
}
}
aW1wb3J0IGphdmEudXRpbC4qOwoKY2xhc3MgSWRlb25lIHsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKXsKICAgIAlTdHJpbmdbXSBhcnJheSA9IHsiMDEudW0iLCAiMDIuZG9pcyIsICIwMy50cmVzIn07CgkKCQlmb3IoaW50IGkgPSAwOyBpIDwgYXJyYXkubGVuZ3RoOyBpKyspCgkJCWFycmF5W2ldID0gYXJyYXlbaV0uc3BsaXQoIlxcLiIpWzBdOwoJCQkKCQlTeXN0ZW0ub3V0LnByaW50bG4oQXJyYXlzLnRvU3RyaW5nKGFycmF5KSk7Cgl9Cn0=