摘要:
1. 编写一个方法,实现冒泡排序(由小到大),并调用该方法 package wjy1; import java.util.Scanner; public class wjy { public static void Small(int a[]) { for (int i = 0; i < a.len 阅读全文
摘要:
1、编写一个简单程序,要求数组长度为5,分别赋值10,20,30,40,50,在控制台输出 该数组的值。(知识点:数组定义和创建、一维数组初始化)[必做题]? package wjy21; public class wjy1 { public static void main(String[] ar 阅读全文
摘要:
1.编写一个简单程序,要求数组长度为5,静态赋值10,20,30,40,50,在控制台输出该数组的值。 int a[]={10,20,30,40,50}; for (int i = 0; i < a.length; i++) { System.out.println(a[i]); } 2.编写一个简 阅读全文