隐藏页面特效

05 2020 档案

摘要:public static void main(String args[]) {//do while int sum = 0; //当前之和 int i = 1; //加数 do { if (i%2==0){ sum+=i; } i++; }while (i<=100); System.out.pr 阅读全文 »
posted @ 2020-05-26 00:07 苏先生呀 阅读(1150) 评论(0) 推荐(0) 编辑
摘要:package com.yc.bean; public class ShuiXianHua { public static void main(String[] args) { /** * 题目:打印出所有的 "水仙花数 ",所谓 "水仙花数 "是指一个三位数, * 其各位数字立方和等于该数本身。例 阅读全文 »
posted @ 2020-05-24 22:37 苏先生呀 阅读(403) 评论(0) 推荐(0) 编辑
摘要:import java.util.Scanner; public class Dome{ public static void main(String args[]){ int[]arr=new int[] {89,87,75,26,11,78};//从小到大排序 int temp=0;//临时变量 阅读全文 »
posted @ 2020-05-17 13:26 苏先生呀 阅读(125) 评论(0) 推荐(0) 编辑
摘要:public class a { public static void main(String args[]) { int a[] = {84, 40, 16, 3, 10, 49, 28, 76, 94, 70}; java.util.Arrays.sort(a); System.out.prin 阅读全文 »
posted @ 2020-05-17 11:23 苏先生呀 阅读(163) 评论(0) 推荐(0) 编辑
摘要:1 import java.io.*; 2 3 public class ReadFile { 4 public static void main(String[] args) { 5 6 try { 7 File file = new File("E:\\JavaLog/logs/1.txt"); 阅读全文 »
posted @ 2020-05-17 11:17 苏先生呀 阅读(380) 评论(0) 推荐(0) 编辑
摘要:public class MaxMin{ public static void main(String[] args) { int[] arr = new int[6]; Scanner input = new Scanner(System.in); for (int i = 0; i < arr. 阅读全文 »
posted @ 2020-05-17 11:11 苏先生呀 阅读(1138) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示