标签:入口 rgs nbsp 字符串类型 oid 字符串 ring static str
1 方法
如果方法没有返回值,则必须写void,不能省略
如果有返回值,则定义的方法的类型必须和方法体内返回值的类型相同
public String returnString(){
return“返回值是字符串类型”
}
2 主方法
它是程序的入口。
public static void main(String[] args){
}
标签:入口 rgs nbsp 字符串类型 oid 字符串 ring static str
原文地址:http://www.cnblogs.com/mncasey/p/6653875.html