首页 新闻 会员 周边

java源程序

0
[已关闭问题] 关闭于 2017-03-04 20:03

public class Tom{
int leg;
String head;
void cry(String s){
System.out.println(s);
}
}
class Example{
public static void main(String args[]){
Tom cat;
cat=new Tom();
cat.leg=4;
cat.head="猫头";
System.out.println("t腿:"+cat.leg+"条");
System.out.println("头:"+cat.head);
cat.cry("我今天要和jerry拼了");

  }
}

流川枫、的主页 流川枫、 | 菜鸟二级 | 园豆:202
提问于:2017-03-04 19:57
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册