Java tutorial
//package com.java2s; public class Main { public static String getClassName(String classMethodName) { return classMethodName.substring(0, classMethodName.indexOf('#')); } }