- 博客(2)
- 收藏
- 关注
原创 Android Studio广播实验
Toast.makeText(context,"静态注册:接收到播放广播",Toast.LENGTH_LONG).show();// switch (view.getId()) {//Views使用switch。//停止Service。switch (actionType) {//Views使用switch。// Log.i("Service","Service已创建");// Log.i("Service","Service已停止");
2023-12-27 09:44:18 846 1
原创 java中简单的电子宠物系统
System.out.print("我的品种是"+dog.getStrain()+"。System.out.print("我的健康值是"+health+",");System.out.print("我是"+p.getSex()+"性企鹅。System.out.print("我的名字是"+name+",");System.out.print("亲密度值是"+love+"。dog.print("二哈", 85, 53);p.print("小冰", 85, 73);代码如下:首先创建一个Pet当作父类。
2023-04-03 23:30:48 1935
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人