java³£¿¼µÄ¼¸¸öÅÅÐò
1.дһ¸öðÅÝÅÅÐòµÄ³ÌÐò¡£
public class Sort
{
public static void main(String[] args)
{
int[] array = {2,3,4,1,43,432,1,344,234,2,3,43,32,434,3432,43,2432,432,4,43};
int num = 0;
/*
ðÅÝÅÅÐø
*/
for(int i = 0;i < array.length;i++)
{
/*
ÿϵ×Ò»¸öÔªËØ£¬Ôòµ÷»»µÄ´ÎÊý¼õÒ»¡£
×¢Ò⣺j<array.length-i-1,²»¼õÒ»ÔòÊý×éϱêÔ½½ç¡£
*/
for(int j = 0;j<array.length-i-1;j++)
{
&n
Ïà¹ØÎĵµ£º
FileDialogÖ»ÄÜÑ¡ÔñÎļþ¶ø²»ÄÜÑ¡ÔñÎļþ¼Ð¡£JFileChooserÓÖÌ«´ó£¬²»Ì«ºÃ¿´£¬¹Äµ·Á˺ÃÒ»»áÖÕÓÚ½â¾öÁË¡£
¼Ç¼һϹؼü²¿·Ö´úÂ룬ÒÔ±¸²éÓá£
final JButton choose=new JButton("Ñ¡Ôñ´æ´¢ÎļþĿ¼");
final JTextField dir=new JTextField();
final JFileChooser chooser=new JFileChooser();
chooser.setFileSe ......
ÕâÆªÎÄÕºÍSUN¹«Ë¾ÌṩµÄ½Ì³ÌÀàËÆ£¬Öмä¶àÁËÒ»¸öHelloImplµÄjavaÎļþ£¬±àÒëʱµÄÃüÁîÒ²¾ÍÓÐËù²»Í¬ÁË
ÔÀ´µÄÃüÁîΪ£ºServer javac HelloServer.java HelloApp/*.java
......
/*
* CookieSupport.java
* Copyright (C) 2007-3-19 <JustinLei@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version ......
ÖÐÎÄÂÒÂë½â¾ö·½°¸£º
Êý¾Ý¿âÂÒÂë:
UTF-8¶ÔÖÐÎÄÓÃ3¸ö×Ö½ÚÀ´±íʾ
String s =”·ÉÏè”;
byte[] utf8 = s.getBytes(“utf-8”);//»ñµÃutf-8±àÂëµÄ×Ö½ÚÖµ
System….(new String(utf8,”gbk”);//ÓÃGBK±àÂë¸ñʽ¶ÔUTF-8±àÂë¸ñʽµÄ×Ö½ÚÊý×é½øÐнâÂ룬½«²úÉúÂÒÂë¡£
²é¿´Êý¾Ý¿âµÄ× ......