ppts.net
当前位置:首页>>关于一道JAVA题的资料>>

一道JAVA题

import java.util.*;class Information{ //会员信息的类 private int cade ; //会员卡号 private String birthday = "2012/12/23"; //会员生日 private int integral=1253; //会员积分 public Information(int cade){ //定义会员号,接收于键盘 this.cade=cade; }

import java.util.Scanner; public class ForRhombus1 { public static void main(String[] args) { Scanner input = new Scanner(System.in); boolean con = true; int border, num = 0; do { con = false; System.out.print("请输:"); border = input.nextInt(

import java.util.*;public class test{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int[] a =new int[10]; int count1=0; int count2=0; int count3=0; int countNO=0; for (int i = 0; i < 10; i++) { System.out.println("请输入第"

public abstract class Car ( int maxSpeed; final int exceed = 150; int speed; public abstract void stop () {}if(spees>exceed)( sum=sum-1; System.out.println(“你已超速,积分被扣一分,请交罚款200元!”)}}} public class Ford{Int sum=12;Int

import java.io.*;import java.util.Random;public class ljw{ public static void main(String[] args) { String s=""; int a,b,c,d,e,f; double A=0,B=0; Random random=new Random(); float x=random.nextFloat(); while(true) { c=(int)(Math.random()*100)+1;

package action;public class Rectangle { private int width; private int height; /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub //声明类时传入宽高 Rectangle rec = new Rectangle(200,100); System.out.

1>a=a+a=12+12=24 2>a=a-a=0 3>a=a*(2+3)=12*5=60 4>a=a/(a+a)=12/24=0 5>a=a%(n%2)=12%(5%2)=12%1=0 6>a=a*a=144 a=a-a=0 a=a+a=0+0=0

所谓“水仙花数”是指一个三位数,其各位数字立方和等于该数 本身.例如:153是一个“水仙花数”,因为153=1的三次方+5的三次方+3的三次方.给你举例说明 求出100至999之间的所有“水仙花数” 找出100--999之间的所有“水仙花数”

import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.List; import java.util.Map; public class AChar { private char name; private int count; private int position; // a 2次,d 3次,大 1次

次数可以改,100W次后的结果3.1415936535887745public class Pai {public double cal(int n){double result=4;for(int i=1;i

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