2021年10月14日

摘要: package cn.itcast.checkbox; import android.os.Bundle; import android.app.Activity; import android.content.Intent; import android.view.Menu; import and 阅读全文
posted @ 2021-10-14 18:52 不顾倾世、只倾她一 阅读(28) 评论(0) 推荐(0) 编辑

2021年10月7日

摘要: 1.三个界面,界面1点击按钮使用显式意图开启界面2.界面2点击按钮隐式意图开启界面3 com.example.wyn; import android.os.Bundle; import android.app.Activity; import android.content.Intent; impo 阅读全文
posted @ 2021-10-07 15:51 不顾倾世、只倾她一 阅读(23) 评论(0) 推荐(0) 编辑

2021年9月25日

摘要: 一、返回键实现对话框弹出是否退出应用程序 package com.example.a; import android.os.Bundle; import android.app.Activity; import android.app.AlertDialog; import android.app. 阅读全文
posted @ 2021-09-25 15:21 不顾倾世、只倾她一 阅读(25) 评论(0) 推荐(0) 编辑

2021年6月18日

摘要: 2.1 定义一个汽车类Vehicle, 2.1.1 属性包括:汽车品牌brand(String类型)、颜色clr (String类型)和速度speed(duble类型)。 2.1.2 至少提供一个有参的构造方法(要求品牌和颜色可以 初始化为任意值,但速度的初始值必须为0)。 2.1.3 为属性提供访 阅读全文
posted @ 2021-06-18 12:53 不顾倾世、只倾她一 阅读(21) 评论(0) 推荐(0) 编辑
摘要: • 4.1 ColaEmployee :这是所有员工总的父类,属性:员工的姓名,员工的生日月份。方法:getSalary(int month) 根据参数月份来确定工资,如果该月员工过生日,则公司会额外奖励100 元。• 4.2 SalariedEmployee : ColaEmployee 的子类, 阅读全文
posted @ 2021-06-18 12:41 不顾倾世、只倾她一 阅读(26) 评论(0) 推荐(0) 编辑

2021年5月25日

摘要: 1、定义一个点类Point, 包含2个成员变量x、y分别表示x和y坐标,2个构造器Point()和Point( intx0,y0),以及一个movePoint (int dx,intdy)方法实现点的位置移动,创建两个Point对象p1、p2, 分别调用movePoint方法后,打印pl和p2的坐标 阅读全文
posted @ 2021-05-25 17:43 不顾倾世、只倾她一 阅读(30) 评论(0) 推荐(0) 编辑

2021年5月12日

摘要: package zuoye; public class diyiti { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub int x[] = { 4, 3 阅读全文
posted @ 2021-05-12 15:43 不顾倾世、只倾她一 阅读(59) 评论(0) 推荐(0) 编辑

2021年4月27日

摘要: 1.0 package dibazhou; public class diyici { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stubint a[]=ne 阅读全文
posted @ 2021-04-27 15:44 不顾倾世、只倾她一 阅读(33) 评论(0) 推荐(0) 编辑

2021年4月19日

摘要: package shangjizuoye; public class keye { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub int a[]=new 阅读全文
posted @ 2021-04-19 15:30 不顾倾世、只倾她一 阅读(26) 评论(0) 推荐(0) 编辑

2021年4月11日

摘要: 1. package diliuzhou; public class Text { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub int sum=0; 阅读全文
posted @ 2021-04-11 17:32 不顾倾世、只倾她一 阅读(27) 评论(0) 推荐(0) 编辑

导航