需求:
String s = "com.dolphin.browser.cn.test.TestCase_1", 要求转换为com.dolphin.browser.cn.test.TestCase_1.class
方法:
Class cs = Class.forName(s); cs即为所求。
需求:
String s = "com.dolphin.browser.cn.test.TestCase_1", 要求转换为com.dolphin.browser.cn.test.TestCase_1.class
方法:
Class cs = Class.forName(s); cs即为所求。