Java tutorial
//package com.java2s; public class Main { public static String getResouceNameByJID(String jid) { String str = jid.split("/")[1]; return str; } }