摘要:
编写一个方法,实现冒泡排序(由小到大),并调用该方法 package xingqidemo01; public class shuzu { public static void maop() { int a[]= {4,8,5,7,6,2}; for (int i = 0; i < a.length 阅读全文
摘要:
1.编写一个简单程序,要求数组长度为5,静态赋值10,20,30,40,50,在控制台输出该数组的值 package aaa; public class 啊 { public static void main(String[] args) { // TODO Auto-generated metho 阅读全文
摘要:
使用for循环计算1-100的和,除了以3结尾的那些数 package text; public class aaa { public static void main(String[] args) { // TODO Auto-generated method stub int i,sum=0; 阅读全文
摘要:
分别使用for循环,while循环,do循环求1到100之间所有能被3整除的整数的和。(知识点:循环语句) package text; public class dly { public static void main(String[] args) { // TODO Auto-generated 阅读全文