被调用的方法(name)跟main处于同一个类中,那么name需要使用static(因为在main这个静态文中只能调用调用静态的name);被调用的name与main处于两个类中,就不需要加static了.