Java tutorial
//package com.java2s; public class Main { public static String getEntityClass(String classname) { String[] t = classname.trim().split("\\."); return t[t.length - 1]; } }