摘要: 1 /** 2 * @author 冰樱梦 3 * 时间:2018年下半年 4 * 题目:找出能被5或6整除,但是不能被两者同时整除的数 5 * 6 */ 7 public class Exercise05_11 { 8 public static void main(String[] args){ 9 int count=0; 10 ... 阅读全文
posted @ 2018-12-25 14:14 CHERRYL 阅读(790) 评论(0) 推荐(0) 编辑
摘要: 1 import java.util.Scanner; 2 /** 3 * @author 冰樱梦 4 * 时间:2018年下半年 5 * 题目:找出分数最高的前两个学生 6 * 7 */ 8 public class Exercise05_09 { 9 public static void main(String[] args){ 10 St... 阅读全文
posted @ 2018-12-25 14:12 CHERRYL 阅读(436) 评论(0) 推荐(0) 编辑
摘要: 1 /** 2 * @author 冰樱梦 3 * 时间:2018年下半年 4 * 题目:金融应用,计算将来的学费 5 * 6 */ 7 public class Exercise05_07 { 8 public static void main(String[] args){ 9 int j=1; 10 double tenY... 阅读全文
posted @ 2018-12-25 14:11 CHERRYL 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 1 /** 2 * @author 冰樱梦 3 * 时间:2018年下半年 4 * 题目:千克与磅之间的转换 5 * 6 */ 7 public class Exercise05_05 { 8 public static void main(String[] args){ 9 System.out.printf("%-27s %-25s %-2... 阅读全文
posted @ 2018-12-25 14:09 CHERRYL 阅读(665) 评论(0) 推荐(0) 编辑
摘要: 1 /** 2 * @author 冰樱梦 3 *题目:将千克转换成磅 4 *时间:2018年下半年 5 */ 6 public class Exercise05_03 { 7 public static void main(String[] args){ 8 System.out.printf("%-30s %s\n","千克", "磅"); ... 阅读全文
posted @ 2018-12-25 14:08 CHERRYL 阅读(522) 评论(0) 推荐(0) 编辑
摘要: 1 import java.util.Scanner; 2 /** 3 * @author 冰樱梦 4 * 5 * 6 */ 7 public class Exercise05_01{ 8 public static void main(String[] args){ 9 Scanner input=new Scanner(System.in)... 阅读全文
posted @ 2018-12-25 14:05 CHERRYL 阅读(1969) 评论(0) 推荐(0) 编辑
摘要: 1 public boolean isPalindrome(int number) { 2 int s=number; 3 if(number0){ 8 re=re*10+number%10; 9 number/=10; 10 } 11 return re==s; 12 ... 阅读全文
posted @ 2018-11-29 22:42 CHERRYL 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 1 import java.util.Scanner; 2 public class SubtractionQuiz { 3 public static void main(String[] args){ 4 int number1=(int)(Math.random()*100); 5 int number2=(int)(Math.random... 阅读全文
posted @ 2018-10-21 17:20 CHERRYL 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 1 import java.util.Scanner; 2 public class Palindrome { 3 public static void main(String[] args){ 4 int a; 5 Scanner input = new Scanner(System.in); 6 System.out.pri... 阅读全文
posted @ 2018-10-21 17:04 CHERRYL 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 1 import java.util.Scanner; 2 public class LinearEquation { 3 public static void main(String[] args){ 4 double a, b, c, d, e, f, x, y; 5 System.out.println("Enter a, b, c, d... 阅读全文
posted @ 2018-10-16 22:14 CHERRYL 阅读(171) 评论(0) 推荐(0) 编辑