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

javaʵÏÖµÄðÅÝÅÅÐò

ðÅÝÅÅÐòÊÇÒ»ÖÖºÜÁ÷Ðкܼòµ¥µÄÅÅÐòËã·¨£¬ËüÖظ´µÄ½»»»ÏàÁÚÁ½¸ö·´ÐòÔªËØ¡£
import java.util.Date;
import java.util.Random;
public class BubbleSort {
public static void main(String args[])
{
int len = 40;
Date date = new Date();
Random random = new Random(date.getSeconds());
int data[]=new int[len];
for(int i = 0; i < len; i++)
{
data[i]=(int)(random.nextFloat()*100+1);
}
System.out.println("Select sort:");
show(data);
bubbleSort(data);
show(data);
}
/*
* ðÅÝÅÅÐò
*/
private static void bubbleSort(int[] data)
{
int len=data.length;
for(int i=len; i>=1; i--)
{
for(int j=0; j<i-1 ; j++)
{
if(data[j+1]<data[j]){
int temp=data[j+1];
data[j+1]=data[j];
data[j]=temp;
}
}
}
}
private static void show(int[] data)
{
System.out.println("========================");
for(int i = 0; i < data.length; i++)
{
System.out.print(data[i] + " ");
}
System.out.println();
System.out.println("========================");
}
}


Ïà¹ØÎĵµ£º

Java SE ½Ó¿Ú¡¢³éÏóÀà

package demo;
interface Runner{
 int ID=1;
 void run();
 void fly();
}
abstract class AI implements Runner{
 public void run(){
  System.out.println("I am running");
 }
 public void bb(int x,int y){
  System.out.println((x+y));
 }
& ......

Java SE ¶àÏß³Ì

package thread;
class TestThread extends Thread {
 public void run(){
  while(true){
   System.out.println(Thread.currentThread().getName());
  }
 }
}
public class ThreadDemo {
 /**
  * @param args
  */
 public static void ......

FlexºÍJava½»»¥µÄÂÒÂë½â¾ö·½°¸


½ñÌì×öFlexʱÅöµ½flexºÍjava½»»¥µÄÂÒÂëÎÊÌ⣬ʹÓÃHTTPServiceÎÞÂÛÊÇ´ÓFlex¶Ë´«µ½Java¶Ë£¬»¹ÊÇ·´¹ýÀ´¶¼ÂÒÂë¡£µ÷²éÁË°ëÌ죬ÖÕÓڸ㶨ÁË¡£
 
 
ÒÔÏÂÊǽâ¾ö·½°¸£º
 
 
1.Flex¶Ë´«µ½Java¶Ë
 
Flex¶Ë:encodeURIComponent(comment.text)
ʹÓÃencodeURIComponent°Ñ²ÎÊýת»»Îª application/x-www ......

ÔõÑù²é¿´Jsp±àÒëºóÉú³ÉµÄJavaÎļþ

      ¿ÉÄÜ´ó¶àÊýJsp¿ª·¢Ô±ÔÚдÍê³ÌÐò²âÊÔͨ¹ýºó£¬²»Ì«»á¹Ø×¢JspÉú³ÉµÄJavaÎļþ£¬Æäʵ£¬Í¨¹ýJava´úÂ룬¸üÄÜÌåÏÖ³ÌÐò´úÂëµÄÕæÕýº¬Ò壬¶Ô½øÒ»²½Ñо¿³ÌÐò´úÂëµÄºǫ́ÔËÐÐÇé¿öÊǷdz£ÓаïÖúµÄ¡£ÀýÈ磬ÓÃJsp±àд´úÂëʱ£¬ÓÐʱºòÓÃ<%!   %>£¬ÓÐʱºòÓÃ<%   %>£¬¼Ó²»¼Ó¸Ð̾º ......

JavaÑé֤ʱ¼ä¶ÎÎÊÌâ

  ÔÚ´¦Àí¼à²âÊý¾Ýʵʱ¼Èëʱ,ÐèÒªÌṩµ±Ç°°à´ÎÐÅÏ¢{´ó°×°à,Сҹ°à,´óÒ¹°à}£¬°à´ÎÐÅÏ¢ÊǸù¾Ý¸ø¶¨Ê±¼ä¶Î½øÐÐÉ趨ÀàËÆ{{"8:00","16:00"},{"16:00","00:00"},{"00:00","8:00"}}
  ´¦Àí°ì·¨
   · È¡µ±Ç°Ê±¼ä¡¢×ª»»ÑéÖ¤Æðʼ¡¢½áÊøʱ¼ä½øÐбȽϡ£
  Ïà¹Ø´úÂë
 /**
* ʱ¼ä¶Î²âÊÔ
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ