上一页 1 ··· 6 7 8 9 10
摘要: 第七题 package tes; import java.util.Scanner; public class Demo1 { public static void main(String[] args) { Scanner scanner=new Scanner(System.in); Syste 阅读全文
posted @ 2020-10-18 23:15 Zhang_cy 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 第一题: 分析以下需求,并用代码实现 手机类Phone 属性: 品牌brand 价格price 行为: 打电话call() 发短信sendMessage() 玩游戏playGame() 要求: 1.按照以上要求定义类,属性要私有,生成空参、有参构造,setter和getter方法 2.定义测试类,在 阅读全文
posted @ 2020-10-16 09:26 Zhang_cy 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 第一题 package com.hp.zhang; import com.sun.xml.internal.fastinfoset.tools.XML_SAX_StAX_FI; public class test1 { public static void main(String[] args) { 阅读全文
posted @ 2020-10-14 19:22 Zhang_cy 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 第一题 package com.hp.www; public class day3 { public static void main(String[] args) { int[] arr={2,3,4,5,6,7,8,9,10,11}; //遍历打印 // for (int i = 0; i < 阅读全文
posted @ 2020-10-14 11:38 Zhang_cy 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 第一题: 看程序说答案 int a = 10; int b = 3; int c = a + b; 13 int d = a - b; 7 int e = a * b; 30 int f = a / b; 3 int g = a % b; 1 a++; 11 ++a; 11 b--; 2 --b; 阅读全文
posted @ 2020-10-12 20:10 Zhang_cy 阅读(114) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10