摘要:
1.new创建新的对象 String str = new String("str"); 2.通过Java的反射机制 public static void main(String[] args) throws Exception { // 获取类的Class对象 String str = (Strin 阅读全文
posted @ 2024-05-11 14:58
zzsuje
阅读(590)
评论(0)
推荐(0)