Java tutorial
//package com.java2s; public class Main { public static String[] analyseMethod(String methodName) { int index = methodName.lastIndexOf("."); String classPath = methodName.substring(0, index); String method = methodName.substring(index + 1, methodName.length()); String[] strings = new String[2]; strings[0] = classPath; strings[1] = method; return strings; } }