Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

java homework

ʹÓÃjava.lang.MathÀ࣬Éú³É500¸ö0~99µÄËæ»úÊý£¬½øÐÐÅÅÐòÊä³ö£¬²¢Çó×î´óÖµ¡¢×îСֵ¡¢Æ½¾ùÖµ¡¢±ê×¼²î¡¢·½²î¡¢¾ù·½²î£»
import java.lang.Math;
import java.util.Arrays;
public class Main {
public static void main(String args[]) {
//create random
int [] data =new int[500];
double sum = 0, avg =0;
System.out.println("DATE:");
for(int i=0; i<500; ++i) {
data[i] = (int ) (Math.random() * 100);
System.out.print(data[i] + "\t");
if(0==(i+1)%8)
System.out.println();
}
System.out.println("\nAfter sort:");
//sort
Arrays.sort(data);
for(int i=0; i<500; ++i) {
sum += data[i];
System.out.print(data[i] + "\t");
if(0==(i+1)%8)
System.out.println();
}
System.out.println();
avg = sum/(500);
double sum2= 0;
for(int i=0; i<500; ++i) {
sum2 += Math.pow((double)data[1] - avg,2);
}
double var = sum2 / 500;
double sd = Math.sqrt(var);
System.out.println("Min:" + data[0]);
System.out.println("Max:" + data[499]);
System.out.println("Variance:" + var);
System.out.println("Sd:"+ sd);
}
}


Ïà¹ØÎĵµ£º

Java¹Ø¼ü×Öfinal¡¢staticʹÓÃ×ܽá

Java¹Ø¼ü×Öfinal¡¢staticʹÓÃ×ܽá
 
Java¹Ø¼ü×Öfinal¡¢staticʹÓÃ×ܽá
 
Ò»¡¢final
        ¸ù¾Ý³ÌÐòÉÏÏÂÎÄ»·¾³£¬Java¹Ø¼ü×ÖfinalÓГÕâÊÇÎÞ·¨¸Ä±äµÄ”»òÕß“ÖÕ̬µÄ”º¬Ò壬Ëü¿ÉÒÔÐÞÊηdzéÏóÀà¡¢·Ç³éÏóÀà³ÉÔ±·½·¨ºÍ±äÁ¿¡£Äã¿ÉÄܳöÓÚÁ½ÖÖÀí½â¶øÐèÒª ......

java ÈÕÆÚ²î ʵÏÖ(×·ÖÖÓÇ°)¹¦ÄÜ

½ñÌì¾­ÀíÈÃдһ¸ö£¬¸ù¾ÝÐÅÏ¢ÉÏ´«Ê±¼ä£¬ÏÔʾ£¬£¿·ÖÖÓÇ°£¬£¿Ð¡Ê±Ç°£¬£¿ÌìÇ°£¬ÀàËÆqq¿Õ¼ä·¢±íµÄÐÄÇéÈÕÆÚ£»
ÓÃÁËÒ»¸ö×ÔÎҸоõ±¿µÄ·½·¨£¬²»¹ý»¹ÊÇʵÏÖÁË£¬ºÇºÇºÇ
    public static String getCompareTime(String filetime){
     //·µ»ØµÄ×Ö·û´®
    String retStr =""; ......

java(eclipse)UML¹¤¾ß umlet

umlet ʹÓÃjava±àдµÄÒ»¿îСÐÍuml¹¤¾ß£¬¿ÉÒÔ×÷ΪeclipseµÄ²å¼þ°²×°£¬Ò²¿ÉÒÔ¶ÀÁ¢ÔËÐС£
umletÕæ¿Éν¶ÌС¾«º·£¬·Ç³£Ö®Ð¡£¬ÈÝÒ×ÉÏÊÖ£¬ÎÒϲ»¶ÕâÑù¼òµ¥ÊµÓõÄÈí¼þ¡£
umlet²»Ö§³Ö·´ÏòµÈ¸ß¼¶¹¦ÄÜ¡£
UMLet is a UML tool aimed at providing a fast way of creating UML diagrams. UML elements are modified using text input i ......

JAVA³õÂóÌ(·¢ÏÖ)

      JAVAÊÇÒ»ÖÖ±à³ÌÓïÑÔ£¬Ò»ÖÖ¿ª·¢»·¾³£¬Ò»ÖÖÓ¦Óû·¾³£¬Ò»ÖÖ²¿Êð»·¾³£¬Ò»Öֹ㷺ʹÓõÄÍøÂç±à³ÌÓïÑÔ£¬ËüÊÇÒ»ÖÖ¼ÆËã¸ÅÄî¡£
      ×é³ÉJavaµÄ3¸ö·ÖÖ§£º
      J2SE(Java 2 Platform Standard Edition):Java±ê×¼°æ£¬°üº¬¹¹³ÉJAVAÓïÑÔºËÐÄ ......

µÚ¶þÕ Java Project´î½¨

 
н¨javaÏîÄ¿£¬ÐèÒª½¨Á¢ÈçͼËùʾµÄ°ü½á¹¹£¨ÕâͼÊǺóÃæ²¹Éϵģ¬ËùÒÔÀïÃæÓн¨ºÃµÄÀࣩ£º
 
 
µã»÷ÏîÄ¿£¬ÓÒ¼üÑ¡Ôñ-¡·ÊôÐÔ-¡·Ìí¼Ó×Ô¶¨Òå¿â£º
 
 
¼á³ÖÒÔ×îÉÙ°üÔ­Ôò£¬ÀýÈ磺
 
 
Íê³ÉÈçÏÂͼËùʾ£º
 
 
 
ÏîÄ¿½á¹¹´óÖÂÈçÏ£º
 
 
¶ÔBookService½ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ