摘要:
1.编写一个方法,实现冒泡排序(由小到大),并调用该方法 package homework; public class Home5 { public static void main(int x[] ) { // 1.编写一个方法,实现冒泡排序(由小到大),并调用该方法 int a = 0; for 阅读全文
摘要:
1、编写一个简单程序,要求数组长度为5,分别赋值10,20,30,40,50,在控制台输出该数组的值. package work; public class work { public static void main(String[] args) { int a[]={10,20,30,40,50 阅读全文
摘要:
编写一个简单程序,要求数组长度为5,静态赋值10,20,30,40,50,在控制台输出该数组的值。 package work; public class work { public static void main(String[] args) { int []a=new int[]{10,20,3 阅读全文
摘要:
1.使用for循环计算1-100的和,除了以3结尾的那些数package work; public class work { public static void main(String[] args) { int sum=0; for (int i = 1; i < 101; i++) { if 阅读全文