www.ypnh.net > 求JAVA源代码

求JAVA源代码

class HW1 { public static void main(String[] args) { double[] test = new double[]{5.2, 1.0, 6.7, 3.4, 100.5, 55.5}; BoundryValues boundryValues = getBoundryValues(test); System.out.println("Min Value = " + boundryValues.getMin()); System.out.

就是用java实现呗,你按要求一个一个来不就很简单吗

您好,写了一个程序,求素数,并将所有素数存到ArrayList sushu中:import java.util.ArrayList;import java.util.zip.Inflater;public class sushu { public static void main(String[] args) { int n=50,b=0; float a=0,c=0; ArrayList sushu=new ArrayList(); for(int i=3;i 评论0 0 0

import java.util.HashMap;import java.util.Map;import java.util.Scanner;public class Phone { public static void main(String[] args) throws Exception { String name,name1; String ph="" ; Scanner scan = new Scanner(System.in); Map map = new

public class Demo3 {public static void main(String[] args) {byte a =1;short b=1;int c = 1;long d = 1l;float e=1f;double f =1;char g ='1';boolean h = true;System.out.println("byte a ="+a);System.out.println("short b="+b);System.out.println("int c ="

public void 2B{ public static void main (String []args ){ system.out.println("hello kitty"); } }

不知道是否理解对了你的意思,大概写了一下:import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileInputStream; import java.io.FileWriter; import java.io.IOException; import java.io.InputStreamReader;

我自己写的,我已经调试过了,没有问题,你看看吧.import java.util.scanner; public class find { public static void main(string args[]) { system.out.println("请输入第一个字符串:"); scanner sc1= new scanner(system.in); system.out.println(

public static void main(String[] args) { String str = "叁千零肆十伍万贰千零贰十"; char[] s = str.toCharArray(); char[] s1 = new char[] { '零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖' }; int shu = 0; String num = ""; int con = 0; for (int l

public class Matriculate { private int score=400; public int isMatriculate(Student stu){ if (stu.getIntgretResult()>=score||(stu.getIntgretResult()>=300&&stu.getSports()>=90)) { return 1; }else { return 0; } } public static void main(String[] args) throws

网站地图

All rights reserved Powered by www.ypnh.net

copyright ©right 2010-2021。
www.ypnh.net内容来自网络,如有侵犯请联系客服。zhit325@qq.com