Java tutorial
//package com.java2s; public class Main { public static String oidTail(String id) { if (id == null || !id.contains(".")) return id; return id.substring(id.lastIndexOf(".") + 1); } }