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

Array»òArrayCollection×÷Ϊjava·½·¨²ÎÊý

/*===================MXML´úÂë==================*/
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">

<mx:Button label="²âÊÔArray" click="bk()"/>

<mx:Script>
<!--[CDATA[
import mx.collections.ArrayCollection;
private function bk():void{
var arrCol:ArrayCollection=new ArrayCollection();//arrayCollection ×÷Ϊ²ÎÊý
var arr:Array=[];//Array×÷Ϊ²ÎÊý

for(var i:int=0;i<10;i++){
arrCol.addItem(i);
}

for(var j:int=0;j<10;j++){
arr.push(j);
}
dbiz.testArrayCol(arrCol);
dbiz.testArray(arr);
}
]]-->
</mx:Script>

<mx:RemoteObject id="dbiz" destination="departBiz" showBusyCursor="true">
<mx:method name="testArray"/>
<mx:method name="testArrayCol"/>
</mx:RemoteObject>
</mx:Application>
/*=================JAVA´úÂë=================*/
/*ʹÓÃArrayList ½ÓÊÕflex ´«À´µÄArray»òArrayCollection*/
public void testArray(ArrayList list){
System.out.print("(");
for (int i = 0; i < list.size()-1; i++) {
System.out.print("'"+list.get(i)+"',");
}
System.out.print("'"+list.get(list.size()-1)+"'");
System.out.println(")");
}
/*ʹÓÃList ½ÓÊÕflex ´«À´µÄArrayCollection»òArray*/
public void testArrayCol(List list){
System.out.print("(");
for (int i = 0; i < list.size()-1; i++) {
System.out.print("'"+list.get(i)+"',");
}
System.out.print("'"+list.get(list.size()-1)+"'");
System.out.println(")");
}


Ïà¹ØÎĵµ£º

C/C++ÓëJava¶àάÊý×飬±éÀúÓë×î´óÖµ»ñÈ¡·½·¨£¡

C/C++
/*
* File: main.cpp
* Author: Vicky
*
* Created on 2010Äê4ÔÂ29ÈÕ, ÉÏÎç9:46
*/
#include <iostream>
using namespace std;
int maximum(int[], int);
int main(int argc, char** argv) {
// int sg[3][4] = {
int sg[][4] = {
{68, 77, 73, 86},
{87, 96, 7 ......

ÓÃC££¡¢JAVAÒ»´ÎÐÔÈ¡³ö´æ´¢¹ý³ÌÖеĸ÷ÖÖ·µ»ØÖµ

ÎÊÌ⣺ÔÚ´æ´¢¹ý³ÌÖУ¬ÓÐʱ»áÓöµ½±È½Ï±ä̬µÄ¶«Î÷£¬ÈçÒ»¸ö´æ´¢¹ý³ÌÖÐÓÐoutput·µ»ØÖµ£¬ÓÐreturn·µ»ØÖµ£¬»¹ÓвéѯµÄ·µ»ØÖµTABLE£¬Óöµ½ÕâÑùµÄ´æ´¢¹ý³ÌÕæÊÇÓôÃÆ£¬Ò»´ÎÐÔ°ÑËùÓеķµ»Øֵȡ³öÀ´»¹ÕæµÄÓеãÂé·³¡£
 
 
1¡¢  Ê×ÏÈÀ´¿´Õâ¸ö´æ´¢¹ý³Ì°É
 
CREATE  PROCEDURE ParaTest
@paraout varchar(20) ......

Java½Ó¿Ú,³éÏóÀ࣬ÄÚ²¿Àà

×î½ü¿´µ½µÄһƪÎÄÕ£¬¾õµÃдµÄͦºÃ£¬¾Íת¹ýÀ´ÒÔ±ã×Ô¼ºÀ´¿´¡£
¿´µ½ÂÛ̳ÀïÓиöÌû×ÓÔÚÌÖÂ۽ӿںͳéÏóÀàµÄÇø±ðºÍ×÷Óã¬ÕâÆäʵҲÊǺܶàÃæÊÔ¹Ùϲ»¶ÎʵÄÎÊÌ⣬ÕâÀïÎÒ¾Í˵˵ÎÒµÄ×ܽᣬ˳±ã˵˵ÄÚ²¿ÀàµÄ×÷Ó㬵±ÊǸø¸ÕÈëÃÅ£¬»òÕßÏëѧϰjavaµÄͬѧÃÇÄܸüºÃµÄÀí½âËüÃǵÄÓ÷¨¡£
1.½Ó¿Ú(interface)£¬½Ó¿Ú±»ÓÃÀ´½¨Á¢ÀàÓëÀàÖ®¼ä¹ØÁªµÄ±ê× ......

JAVA¼¼ÇÉ:´ò°üwarµÄ¼¸ÖÖ·½·¨

¡¡1.Ê×ÏÈÊǹ¤¾ß±ÈÈçEclipseºÜ·½±ãÁË¡£
¡¡¡¡2.ÓÃwinrarÖ®ÀàµÄ¹¤¾ß£¬°Ñweb-infoĿ¼£¬¼°¸úËüͬ¼¶µÄËùÓÐĿ¼¼°Îļþ£¬´ò°ü³É zipÎļþ¾ÍÐÐÁË£¬È»ºó°ÑÀ©Õ¹Ãû¸Ä³Éwar!
¡¡¡¡3 JarÃüÁ
¡¡¡¡¼Ù¶¨ÓÐÒ»¸öWebÓ¦ÓãºC:\myHome
¡¡¡¡ myHome/WEB-INF/……
¡¡¡¡myHome/files/……
¡¡¡¡myHome/image/… ......

javaÊý¾Ý¿âÁ¬½Ó¼°²âÊÔ(sqlserver)


package com.test.util;
import java.sql.*;
public class ConnectDB {
 private Connection conn=null;
 private PreparedStatement pt=null;
 private ResultSet rs=null;
 private String uname="sa";
 private String upwd="sa";
 private String url="jdbc:microsoft:sqlserv ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ