08 2014 档案
摘要:import java.io.IOException;import java.util.Scanner;public class Sum { public static void main(String[] args) throws IOException { try { ...
阅读全文
摘要:import java.io.IOException;import java.util.Scanner;public class CommonDivisor { public static void main(String[] args)throws IOException{ t...
阅读全文
摘要:import java.io.File;import java.io.FileOutputStream;public class Creat { public static void main(String[] args){ try { File f = n...
阅读全文
摘要:import java.util.Scanner;public class Sum { public static void main(String[] args){ Scanner input = new Scanner(System.in); System.ou...
阅读全文
摘要:import java.util.Scanner;public class Regulartriangle { public static void main(String[] args){ Scanner input = new Scanner(System.in); ...
阅读全文
摘要:public class Division { public static void main(String[] args){ int count = 1; for(int number = 100;number <= 1000;number++){ ...
阅读全文
摘要:import java.util.Scanner;public class Triangle { public static void main(String[] args){ double d; System.out.println("请输入三角形的三条边的长度!...
阅读全文
摘要:import java.util.Scanner;public class Lottery { public static void main(String[] args){ int lottery1,lottery2,guess1,guess2; int lott...
阅读全文
摘要:import java.util.Scanner;public class Game { public static void main(String[] args){ int r; r = (int) (Math.random()*2 + 1); S...
阅读全文
摘要:import java.util.Scanner;public class Days { public static void main(String[] args){ Scanner input = new Scanner(System.in); int day ...
阅读全文
摘要:import java.util.Scanner;public class Equation { public static void main(String[] args){ double r1,r2; Scanner input = new Scanner(Sy...
阅读全文
摘要:import javax.swing.JOptionPane;public class Distance { public static void main(String[] args){ String input = JOptionPane.showInputDialog(nu...
阅读全文
摘要:import javax.swing.JOptionPane;public class Health { public static void main(String[] args){ double weight,height; String input = JOp...
阅读全文
摘要:import javax.swing.JOptionPane;public class Investment { public static void main(String[] args){ double value; String input = JOption...
阅读全文
摘要:import javax.swing.JOptionPane;public class Interest { public static void main(String[] args){ double accrual; String input = JOption...
阅读全文
摘要:import javax.swing.JOptionPane;public class Salary { public static void main(String[] args){ String name = JOptionPane.showInputDialog(null,...
阅读全文
摘要:import java.util.Random;import javax.swing.JOptionPane;public class Numbers { public static void main(String[] args){ double digit; d...
阅读全文
摘要:import javax.swing.JOptionPane;//一年等于365*24*60=525600,一天等于24*60=1440public class Time { public static void main(String[] args){ String input...
阅读全文
摘要:import javax.swing.JOptionPane;public class Money { public static void main(String[] args){ double gratuity; double total; String input = ...
阅读全文
摘要:import javax.swing.JOptionPane;public class Weight { public static void main(String[] args){ String input = JOptionPane.showInputDialog(null...
阅读全文
摘要:import javax.swing.JOptionPane;public class Foot { public static void main(String[] srgs){ String input = JOptionPane.showInputDialog(null,"...
阅读全文
摘要:import java.util.Scanner;import javax.swing.JOptionPane;public class TypeOfIO { public static void main(String[] args){ double value = 0; ...
阅读全文
摘要:import javax.swing.JOptionPane;public class inchToMeter { public static void main(String[] args){ final double PARAMETER = 0.305; Str...
阅读全文
摘要:1 import javax.swing.JOptionPane; 2 public class plusFactor { 3 public static void main(String[] args){ 4 int value,valueH,valueD,val...
阅读全文
摘要:import javax.swing.JOptionPane;public class ComputeVolume { public static void main(String[] args){ final double PI = 3.14; double vo...
阅读全文
摘要:Java语言规范:java.sun.com/docs/books/jls三个版本的API:J2SE J2EE J2ME1. J2SE 客户端独立应用程序或者applet2. J2EE 服务端应用程序 [Java Servlets&JavaServer Page]3. J2ME 移动设备变成JDK为J...
阅读全文