java作业
Lwj.
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
作业01_0722
第一题: 交换两个变量的值,不借助第三方变量 程序: public class numb01 { public static void main(String[] args) { int a=4; int b=7; System.out.println("互换之前:\na="+a+"\nb="+b); a=a+b; b=a-b; a=a-b; System.ou...原创 2019-07-27 12:03:36 · 216 阅读 · 0 评论 -
作业02_0728
第二题: 从控制台输出如下结构: 程序: public class Numb02_1 { public static void main(String[] args) { for (int i = 0; i < 6; i++) { for (int j = 0; j < 6-i; j++) { System.out.print("*"); } ...原创 2019-08-02 03:16:08 · 162 阅读 · 0 评论 -
作业03_0804
第二题: 使用冒泡排序,实现如下的数组从小到大排序。 int[] arr = new int[]{34,5,22,-98,6,-76,0,-3}; 程序: public class Num02 { public static void main(String[] args) { int[] arr=new int[]{34,5,22,-98,6,-76,0,-3}; Syste...原创 2019-08-10 08:39:02 · 140 阅读 · 0 评论
分享