nynw.net
当前位置:首页 >> JAvA程序设计求解: 编写程序,从键盘输入一个5位... >>

JAvA程序设计求解: 编写程序,从键盘输入一个5位...

import java.util.Scanner; public class Qh{ public static void main(String[] args){ Scanner input=new Scanner(System.in); System.out.println("请输入:"); int a=input.nextInt(); int b=a/10000; int c=a%10000; int d=c/1000; int e=c...

自己抄一遍吧,侄女要的,顺便贴出来估计你们一个学校的吧[呲牙]

public static void main(String[] args) {int k;System.out.print("请输入第一个数:");Scanner str1 = new Scanner(System.in);int max = Integer.parseInt(str1.next());System.out.print("请输入第二个数:");Scanner str2 = new Scanner(Sy...

public class Demo1 {public static void main(String[] args) throws Exception {System.out.println(" J A V V A");System.out.println(" J A A V V A A");System.out.println("J J AAAAA V V AAAAA");System.out.println(" J J A A V A A");}...

题目1: import java.util.Scanner;/** * 题目1:编写JAVA应用程序,比较命令行中给出的字符串是否相等,并输出比较的结果。 * @author Retror * */public class TestEqual {public static String str[]=new String[2];public static void main(...

int n=77777; int i=1; while((n=n/10)>0){ i++; } System.out.println(n+"是"+i+"位数");

public class Test { private static int a = 1678; public static void main(String[] args) { String b = String.valueOf(a); for(int i=0;i

package t2;import java.util.Scanner;public class test { public static void main(String[] args) { for(;;) { Scanner input = new Scanner(System.in); System.out.println("请输入学生的分数:"); double score = input.nextDouble(); int...

import java.util.Scanner; public class InputNum { public static void main(String[] args) { System.out.println("请输入10个数,以回车间隔:"); Scanner sr = new Scanner(System.in); int []numArr = new int[10]; for(int i = 0;i

import java.awt.Rectangle; import java.math.BigDecimal; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JTextArea; import javax.swing.JTextField; p...

网站首页 | 网站地图
All rights reserved Powered by www.nynw.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com