i 绝望

依然

Miss Lang
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 31 下一页
  2013年11月6日
摘要: 总结:思维方式关键package com.dfd;import java.util.Scanner;//逆序输出数字public class fdad { public static void main(String[] args) { int y; Scanner c = new Scanner(System.in); System.out.println("请输入----"); int x = c.nextInt(); System.out.print("输出后的数为:");// 这一步可以省,只是不会显示"输出后的数为:" // 阅读全文
posted @ 2013-11-06 07:02 juewang 阅读(397) 评论(0) 推荐(0) 编辑
摘要: 总结:请告诉我更好的方法~~~总觉得不好。package com.badu;import java.util.Scanner;//逆序输出数字://class fa { public static void main(String[] args) { Scanner c = new Scanner(System.in); System.out.println("请输入数字----"); int a = c.nextInt(); // int b; int d = 0; System.out.println("需要处理的数:" + a); System.o 阅读全文
posted @ 2013-11-06 00:21 juewang 阅读(2672) 评论(0) 推荐(0) 编辑
  2013年11月5日
摘要: 总结:请给我更好的建议package com.badu;import java.util.Scanner;//从键盘输入次数,通过输入的编号,输出对应的的商品价格;public class tqwe { public static void main(String[] args) { Scanner c = new Scanner(System.in); int x = c.nextInt();// x是次数,number是编号,price是价格 int number[] = new int[x]; double price; for (int i = 0; i < x; i++) .. 阅读全文
posted @ 2013-11-05 22:32 juewang 阅读(440) 评论(0) 推荐(0) 编辑
摘要: 总结:总感觉有问题,因为输出我写的太不对劲了,直接把price的价格写了出来然输出显示……package com.badu;import java.util.Scanner;//从键盘输入次数,通过输入的编号,输出对应的的商品价格;public class tqwe { public static void main(String[] args) { Scanner c = new Scanner(System.in); int x = c.nextInt();// x是次数,number是编号,price是价格 int number; double price; for (int ... 阅读全文
posted @ 2013-11-05 22:21 juewang 阅读(1576) 评论(0) 推荐(0) 编辑
摘要: 总结:可以if-else 循环或switch循环package com.b;import java.util.Scanner;/*以下4种水果的单价分别是3.00元/公斤,2.50元/公斤,4.10元/公斤,10.20元/公斤。//输入水果的编号,输出它的单价,若输出不正确的编号,则显示单价为0;[1] apples[2] pears[3] oranges[4] grapes //->*/public class dfhgrr { public static void main(String[] args) { Scanner c=new Scanner(System.in); int 阅读全文
posted @ 2013-11-05 07:47 juewang 阅读(1224) 评论(0) 推荐(0) 编辑
摘要: 总结:数组内的数据要循环,外面的次数也要循环package com.aini;import java.util.Scanner;//要求可以控制输入的次数,比如4次。则输入5个数,5组输出结果public class DFSDFG { public static void main(String[] args) { Scanner c = new Scanner(System.in); int x = c.nextInt(); int a[] = new int[x]; int s = 0; for (int i = 0; i < x; i++) { for (int i1 = ... 阅读全文
posted @ 2013-11-05 00:04 juewang 阅读(373) 评论(0) 推荐(0) 编辑
  2013年11月4日
摘要: 总结;你的关注,是我的动力package com.b;import java.util.Scanner;public class YUIO { public static void main(String[] args) { Scanner c = new Scanner(System.in); int x = c.nextInt(); int a[] = new int[x]; int s = 0; int max = a[0]; for (int i = 0; i < x; i++) { System.out.println("输入的" + "第&quo 阅读全文
posted @ 2013-11-04 23:36 juewang 阅读(329) 评论(0) 推荐(0) 编辑
摘要: Miss Lang大家觉得java最难的是什么呢??? 阅读全文
posted @ 2013-11-04 23:29 juewang 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 总结:没有把数据输入。是数组-----把要输入的数据放在数组里。错在这里import java.util.Scanner;public class shibai { public static void main(String[] args) { Scanner c = new Scanner(System.in); int a[] = new int[5]; int max = a[0]; for (int i = 0; i < a.length; i++) { System.out.println("请输入" + "第" + (i + 1) + 阅读全文
posted @ 2013-11-04 07:53 juewang 阅读(344) 评论(0) 推荐(0) 编辑
摘要: 总结:从键盘输入一组数,输出其最大值,这段代码是错的,因为每次都错在这里,所以自己还是没有理解~~~~import java.util.Scanner;//键盘输入一组数据,并输出最小值//从键盘输入次数,一次输入数据,多次判断大小//输入n次,并输出每一次的结果显示public class NKGFD { public static void main(String[] args) { Scanner c = new Scanner(System.in); // System.out.println("请输入数-----"); int a[] = new int[5]; 阅读全文
posted @ 2013-11-04 07:32 juewang 阅读(310) 评论(0) 推荐(0) 编辑
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 31 下一页

绝望依然

Miss Lang