摘要: 1.有10个评委打分,(去掉一个最高一个最低)求平均分。 import java.util.*; public class demo5 { public static void main(String[] args) { Scanner s = new Scanner(System.in); dou 阅读全文
posted @ 2020-04-16 12:01 我吐啦 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 1.定义长度位5的整型数组,输入他们的值,用冒泡排序后输出 import java.util.*; public class aa { public static void main(String[] args) { // TODO Auto-generated method stub; int[] 阅读全文
posted @ 2020-04-15 14:19 我吐啦 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 开发工具: 1.编译软件:Hbuilder 2.集成环境:PHPstudy(Apache,Mysql,PHPmyadmin) 3.浏览器:谷歌Chrome 阅读全文
posted @ 2020-04-10 13:11 我吐啦 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 1.编写一个简单程序,要求数组长度为5,静态赋值10,20,30,40,50,在控制台输出该数组的值。 public class demo4 { public static void main(String[] srgs) { int[] arr = {10,20,30,40,50};//常用 fo 阅读全文
posted @ 2020-04-09 11:36 我吐啦 阅读(215) 评论(2) 推荐(1) 编辑
摘要: 1. 打印出所有的"水仙花数",所谓"水仙花数"是指一个三位数,其各位数字立方和等于该数本身。 public class demo3 { public static void main(String[] args) { int a=100,g,s,b,n=1; for(;a<1000;a++) { 阅读全文
posted @ 2020-04-02 12:54 我吐啦 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 1. 分别使用for循环,while循环,do循环求1到100之间所有能被3整除的整数的和。(知识点:循环语句) public class demo1 { public static void main(String[] args) { // TODO Auto-generated method s 阅读全文
posted @ 2020-03-31 14:48 我吐啦 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 1.编写程序, 输入变量x的值,如果是1,输出x=1,如果是5,输出x=5,如果是 10,输出 x=10,除了以上几个值,都输出x=none。(知识点:if条件语句) import java.util.*; public class demo { public static void main(St 阅读全文
posted @ 2020-03-26 11:30 我吐啦 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 第二次作业 1. package test3; import java.util.*; public class abc { public static void main(String[] args) { // TODO Auto-generated method stub System.out. 阅读全文
posted @ 2020-03-24 10:03 我吐啦 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 1. package test; public class demo{ public static void main(String[] args) { int a = 100; int b = 200; int tmp; //进行数据交换 tmp = a; a = b; b = tmp; Syst 阅读全文
posted @ 2020-03-19 11:59 我吐啦 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-03-06 20:29 我吐啦 阅读(126) 评论(0) 推荐(0) 编辑