一、定义
格式:
修饰符 返回值类型 方法名(参数){
return
}
相比之下python方法的定义简单多了
public static 是修饰符
二、调用
方法名();
注意:要在main方法中调用