1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-07-28 12:22:17 +08:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Guide
8913cb30ed
Merge pull request #1731 from hanfangyuan4396/patch-1
tagetClass 修正为 targetClass
2022-05-20 18:33:24 +08:00
hanfangyuan4396
4a440f4b9a
tagetClass 修正为 targetClass 2022-05-19 21:17:29 +08:00

View File

@ -130,8 +130,8 @@ public class Main {
/**
* 获取 TargetObject 类的 Class 对象并且创建 TargetObject 类实例
*/
Class<?> tagetClass = Class.forName("cn.javaguide.TargetObject");
TargetObject targetObject = (TargetObject) tagetClass.newInstance();
Class<?> targetClass = Class.forName("cn.javaguide.TargetObject");
TargetObject targetObject = (TargetObject) targetClass.newInstance();
/**
* 获取 TargetObject 类中定义的所有方法
*/