mdsk.net
当前位置:首页 >> 关于jAvA程序设计的问题 >>

关于jAvA程序设计的问题

public class Student { private String id; private String name; private double store; public Student(String id, String name, double store) { this.SetRecord(id, name, store); } public void SetRecord(String id, String name, double...

来日绮窗前,寒梅着花未?(王维《杂诗》)

import java.util.Scanner; public class Salary { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print("请输入您的薪水:"); int salary = input.nextInt(); Salary S =new Salary(); S.pay(s...

第一题看的脑壳疼,但是和第二题的意思差不多,我帮你做了第二题 public class List {public static void main(String[] args) {Employee e1 = new Employee("张强","2010/09/01",6890);e1.show("普通");System.out.println("年纳税:"+e1.tax()...

拿走 public class Tou {public int ran() {int d = (int) (10 * Math.random());if (d > 6 || d < 1) {return ran();}return d;}public void result() {int[] array = new int[13];// 存放结果的数组int x = 0;while (x < 5000) {int a = ran()...

效果图 小技巧,1忽略大小写查找.,所以我们可以考虑把关键字和句子都转换成大写 2. indexOf 方法返回-1 表示没找到.返回的是非-1.那么就是找到了 参考代码如下 import java.io.BufferedReader;import java.io.FileReader;import java.io.IOExcept...

import javax.swing.*;public class WordReplacement {String[] word;String orignalWords;String soWord;String deWord;String words;public WordReplacement() {word = new String[100];orignalWords = JOptionPane.showInputDialog(null, "请...

import java.util.ArrayList;import java.util.HashSet;import java.util.List;import java.util.Random;import java.util.Set;public class Text5 {public static void main(String[] args) {Set set = new HashSet();List list = new ArrayLis...

... 这不就是写个类Point,然后Circle继承Point然后写下set和get方法么。。。

//Prime.java素数包 package org.demo; public class Prime { public void prim() { int i,j,r=0,k,p; int primegroup[]=new int[50]; for(i=2;i

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