/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
String sampleString
= "jrp_documento.jrp_doc_fornecedor|0;jrp_documento.jrp_doc_fornecedor"; String[] items
= sampleString.
split(";"); for(int i = 0; i < items.length; i++){
if(items[i].charAt(items[i].length()-1) == '0'){
System.
out.
println(items
[i
] + " termina em zero"); }else{
System.
out.
println(items
[i
] + " nao termina em zero"); }
}
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCVN0cmluZyBzYW1wbGVTdHJpbmcgPSAianJwX2RvY3VtZW50by5qcnBfZG9jX2Zvcm5lY2Vkb3J8MDtqcnBfZG9jdW1lbnRvLmpycF9kb2NfZm9ybmVjZWRvciI7CgkJU3RyaW5nW10gaXRlbXMgPSBzYW1wbGVTdHJpbmcuc3BsaXQoIjsiKTsKCQlmb3IoaW50IGkgPSAwOyBpIDwgaXRlbXMubGVuZ3RoOyBpKyspewoJCQlpZihpdGVtc1tpXS5jaGFyQXQoaXRlbXNbaV0ubGVuZ3RoKCktMSkgPT0gJzAnKXsKCQkJCVN5c3RlbS5vdXQucHJpbnRsbihpdGVtc1tpXSArICIgdGVybWluYSBlbSB6ZXJvIik7CgkJCX1lbHNlewoJCQkJU3lzdGVtLm91dC5wcmludGxuKGl0ZW1zW2ldICsgIiBuYW8gdGVybWluYSBlbSB6ZXJvIik7CgkJCX0JCgkJfQoJCQoJfQp9