• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






萌萌哒和叶

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2016年5月17日

5.17 JAVA
摘要: class Computer{ int num=0; boolean flag=false; public synchronized void set(){ if(flag){ try{ super.wait(); }catch(InterruptedException e){ e.printSta 阅读全文
posted @ 2016-05-17 12:15 萌萌哒和叶 阅读(130) 评论(0) 推荐(0)
 

2016年5月9日

5.9 JAVA
摘要: public class Test9_1 implements Runnable{ int count; static Object obj = new Object(); public void run() { synchronized(obj){ if(Thread.currentThread( 阅读全文
posted @ 2016-05-09 14:57 萌萌哒和叶 阅读(100) 评论(0) 推荐(0)
 

2016年4月29日

4.29 java
摘要: public class Test7{public static void main(String args[]){double i=0,j=0,k=0;try{i=Double.parseDouble(args[0]);j=Double.parseDouble(args[1]);}catch(Ar 阅读全文
posted @ 2016-04-29 09:20 萌萌哒和叶 阅读(86) 评论(0) 推荐(0)
 

2016年4月22日

4.22
摘要: public class ShopGoodsDemo {public static void main(String[] args) {ShopCar s1=new ShopCar(5);s1.add(new EatFood("面包",12.1));s1.add(new EatFood("辣条",2 阅读全文
posted @ 2016-04-22 13:52 萌萌哒和叶 阅读(119) 评论(0) 推荐(0)
 

2016年4月15日

4.15 jAVA
摘要: interface ClassName{ String getClassName(); } class Company implements ClassName{ public String getClassName(){ return "Company"; } } public class Tes 阅读全文
posted @ 2016-04-15 13:17 萌萌哒和叶 阅读(119) 评论(0) 推荐(0)
 

2016年4月8日

4.8 JAVA
摘要: class Person{ private String name; private String addr; private char sex; private int age; public void setName(String name){ this.name = name; } publi 阅读全文
posted @ 2016-04-08 09:43 萌萌哒和叶 阅读(102) 评论(0) 推荐(0)
 

2016年3月21日

3.20 JAVA
摘要: class Address { private String country; private String province; private String city; private String street; private String zipcode; public Address(St 阅读全文
posted @ 2016-03-21 23:34 萌萌哒和叶 阅读(113) 评论(1) 推荐(0)
 

2016年3月13日

JAVA 3.13
摘要: public class shuixianhua { public static void main(String[] args){ for(int i=100;i<=999;i++){ int x,y,z; x=i/100; y=(i-x*100)/10; z=i-x*100-y*10; if(i 阅读全文
posted @ 2016-03-13 17:27 萌萌哒和叶 阅读(164) 评论(0) 推荐(0)
 

2016年3月6日

java作业
摘要: class DataDemo01{public static void main(String[] args){int num=99999999999999999999999; }} class DataDemo02{public static void main(String[] args){in 阅读全文
posted @ 2016-03-06 18:25 萌萌哒和叶 阅读(166) 评论(0) 推荐(0)