摘要: 1 public class Paixu { 2 public static void main(String args[]) { 3 int myNum[] = {2,6,4,1,5}; 4 //从小到大排序: 5 int tempNum=0; 6 for(int i=0;i<5;i++) { 7 阅读全文
posted @ 2022-04-09 19:49 靠谱杨 阅读(75) 评论(0) 推荐(0)
摘要: 1 import java.util.ArrayList; 2 import java.util.Scanner; 3 4 public class Main { 5 public static void main(String args[]) { 6 // System.out.println(" 阅读全文
posted @ 2022-04-09 19:46 靠谱杨 阅读(242) 评论(9) 推荐(0)
摘要: 1 import java.util.Scanner; 2 3 public class Main { 4 public static void main(String args[]) { 5 Scanner sc = new Scanner(System.in); //初始化Scanner对象 6 阅读全文
posted @ 2022-04-09 19:40 靠谱杨 阅读(128) 评论(0) 推荐(0)
摘要: 1 public class HelloWorld { 2 public static void main(String args[]) { 3 long count=0; 4 String tempstr1=null; 5 String tempstr2=null; 6 boolean flag 阅读全文
posted @ 2022-04-09 19:39 靠谱杨 阅读(156) 评论(0) 推荐(0)
摘要: 1 public class Test { 2 public static void main(String args[]) { 3 double res=20.0; 4 for(int i=0 ;i<21;i++) 5 { 6 res=res*20; 7 } 8 System.out.printl 阅读全文
posted @ 2022-04-09 19:25 靠谱杨 阅读(86) 评论(0) 推荐(0)