flexͨ¹ýblazedsÓëjavaʵÏÖÔöɾ¸Ä²é Õû¸öʵÏÖÁ÷³Ì
1£¬½¨Ò»¸öuserdb¿â£¬ÔÙ½¨userinfo±í£¬×ֶΣºid(int),username(varchar),password(varchar)¡£
2£¬DBConnection.java
package com.datainfo;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class DBConnection {
public static Connection getConnection() throws ClassNotFoundException,
SQLException {
Connection conn = null;
String driver = "com.mysql.jdbc.Driver";
String url = "jdbc:mysql://localhost:3306/userdb"; //²»Í¬Êý¾Ý¿â²»Í¬JDBC
String username = "sa";
String password = "sasa";
Class.forName(driver);
conn = DriverManager.getConnection(url, username, password);
return conn;
}
}
3£¬User.java
package com.datainfo;
public class User {
private int id;
private String username;
private String password;
public User() {
}
/**
* @return the id
*/
public int getId() {
Ïà¹ØÎĵµ£º
½ñÌìÏÂÎç·¢ÏÖÒ»¸ö¹ØÓÚFlex SDK 3.5.0ÖÐComboBoxµÄbug£¬»¹ÕæÊÇ·ÑÁ˲»ÉÙʱ¼ä¡£ÒòΪÎÒ»¹ÊÇÍ·Ò»´Î·¢ÏÖ×Ô¼º½â¾ö²»Á˵ÄÎÊÌ⣬ÓÐÒ»ÖÖ¿ÉÄÜÊÇƽ̨»ò¿ò¼ÜµÄÎÊÌâ¡£Ìش˼Ǽ¡£
ÎÊÌâÃèÊö£º×öÁËÒ»¸ö¹ØÓÚComboBoxµÄ¶þ¼¶Áª¶¯£¬Ò»Ö±¾Í´æÔÚÎÊÌ⣬ÓÉÓÚ֮ǰÖ÷Ì幦ÄÜûÓÐÍê³É£¬Ò²Ã»Ï¸ÐÄÏÂÀ´ÅŲ顣ÔÚÒ»¼¶ÏÂÀÑ¡Ôñºó£¬ÔÚ¶þ¼¶ÖеÄArrayCollection»ò ......
Ò»¡¢ JDK (Java Development Kit)
JDKÊÇÕû¸öJavaµÄºËÐÄ£¬°üÀ¨ÁËJavaÔËÐл·¾³£¨Java Runtime Envirnment£©£¬Ò»¶ÑJava¹¤¾ßºÍJava»ù´¡µÄÀà¿â(rt.jar)¡£²»ÂÛʲçÛJavaÓ¦Ó÷þÎñÆ÷ʵÖʶ¼ÊÇÄÚÖÃÁËij¸ö°æ±¾µÄJDK¡£Òò´ËÕÆÎÕJDKÊÇѧºÃJavaµÄµÚÒ»²½¡£×îÖ÷Á÷µÄJDKÊÇSun¹«Ë¾·¢²¼µÄJDK£¬³ýÁËSunÖ®Í⣬»¹Óкܶ๫˾ºÍ×éÖ¯¶¼¿ª· ......
×Ô´ÓÉÏ´ÎдÁ˶þ·Ö·¨²éÕÒ´úÂëºóͻȻ´òËãºÃºÃѧϰһÏÂÊý¾Ý½á¹¹.ÂòÁËÒ»±¾Êý¾Ý½á¹¹ÓëËã·¨......
import java.util.Random;
/**
*
* @author leon.lee
*/
public class BubbleSort {
private int[] arrayData;
public void printArrayList(){
if (arrayData!=null){
for(int i:a ......
ÔÚJavaÀïÃ棬Á½¸öÕûÊýÏà³ýµÃµ½ÊǸöÕûÊý£¬±ÈÈç int a = 28;
int b = 10;
a/b == 2; //true
ÔÚFlexÖУ¬ÉÏÃæJava´úÂ뽫·µ»ØͬÑùµÄ½á¹û¡£ÖµµÃ×¢ÒâµÄÊÇ£¬Èç¹ûʹÓõÄÊÇNumberÀ࣬ÔòÓÐËù²»Ò»ÑùÁË¡£ÏÂÃæµÄ´úÂëÖУ¬resultµÄֵΪ2.8¡£Èç¹ûÄ㲻СÐÄ°Ñ·µ»ØµÄ½á¹û×÷ΪÊý×éµÄË÷ÒýȥȡֵµÄ»°£¬ÄÇôʲô½á¹û¶¼Ã»ÓС£
var a:Number = 28 ......