摘要: package com.yc.bean; public class ShuiXianHua { public static void main(String[] args) { /** * 题目:打印出所有的 "水仙花数 ",所谓 "水仙花数 "是指一个三位数, * 其各位数字立方和等于该数本身。例 阅读全文
posted @ 2020-05-24 22:37 苏先生呀 阅读(410) 评论(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 苏先生呀 阅读(127) 评论(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 苏先生呀 阅读(165) 评论(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 苏先生呀 阅读(383) 评论(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 苏先生呀 阅读(1145) 评论(0) 推荐(0)