java´«ÖµÎÊÌâ.
Java´«µÝ²ÎÊýÓÐÁ½ÖÖ £ºÖµ´«µÝ£¬ÒýÓô«µÝ
Ò»°ãÒýÓÃÀàÐÍ ÊÇÒýÓô«µÝ£¬ÖµÀàÐÍÊÇÖµ´«µÝ
ÖµÀàÐÍÊÇÔʼÊý¾ÝÀàÐÍ °üÀ¨ int,byte,char short long,boolean,float,double
ÒýÓÃÀàÐ;ÍÊÇÒ»°ãµÄclassÀà µ±È»Ò²°üÀ¨ÔʼÊý¾ÝµÄ·â×°ÀàÐÍ ±ÈÈçintµÄ
·â×°ÀàÐÍΪInteger
Ò»°ãÇé¿öÏ£º
Öµ´«µÝ£º
Àý×Ó 1 public void show1(int str)
{
Str=4;
}
public static void main(String[] args) {
int k=1;
System.out.println(id);
s.show1(str);
System.out.println(id);
}
Êä³ö½á¹ûΪ 1
1
Öµ´«µÝ±íÏÖΪ ¶Ô¶¨ÒåÊý¾ÝµÄÒ»·Ý¿½±´ ²»Ó°ÏìÔʼÊý¾ÝµÄÖµ
ÒýÓô«µÝ
Àý×Ó 2 public void show1(List list)
{
List.add(“dddddd”);
}
public static void main(String[] args) {
List list=new ArrayList()
System.out.println(list.size);
s.show1(list);
System.out.println(list.size);
}
Êä³ö½á¹ûΪ 0
1
ÒýÓô«µÝ±íÏÖΪ ½«ÒýÓöÔÏóµÄÄÚ´æµØÖ·´«µÝ¸øÁË show1·½·¨
²Ù×÷ʱ show1·½·¨»á¸ù¾ÝµØÖ·È¥¸Ä±äÒýÓõÄÖµ£¬Êµ¼ÊÉϾÍÊÇÐÞ¸Ä
ÁËÔʼµÄÖµ
JavaÖÐStringÊǸöÌرðµÄÀà final¹Ø¼ü×ÖÐÞÊÎ ²»Äܱ»¼Ì³Ð£¬
Ò»°ãÇé¿öÀ඼ÊôÓÚÒýÓÃÊý¾ÝÀàÐÍ
¿ÉÒÔ¿´Ò»ÏÂËûµÄ´«µÝЧ¹û
Àý×Ó 3 public void show1(String str)
{
str=new String("dddddddddddddd");
}
public static void main(String[] args) {
String str=new String ("liaomin"); System.out.println(str);
s.show1(str);
System.out.println(str);
}
Êä³ö½á¹ûΪ liaomin
liaomin
Èç¹
Ïà¹ØÎĵµ£º
/*¶à̬ʾÀý*/
package demo;
class AA {
public void f(){
System.out.println("f in AA");
}
}
class BB extends AA{
public void f(){
System.out.println("f in BB");
}
}
public class Test_Dt {
public static void main(String[] args) ......
Flex Java ÉÏ´« ÏÂÔØ ×é¼þ ÊÕ²Ø
ÊÂÇ°×¼±¸¾ÍÊǵ½http://commons.apache.orgÏÂÔØcommon-fileupload-1.1.1.jarÒÔ¼°common-io-1.2.jarÁ½¸ö°ü¡£
ǰ̨Flex´úÂ룺
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns="*" creationComplet ......
/**
* ´¦Àíʱ¼äÒì³£ Date to String
* Èç¹ûת»»³öÏÖÒì³£»á¸øĬÈÏÖµ00:00
* @param time
* @param sdf
* @return
*/
public static String handleDateParseException(Object time){
String tempTime = "00:00";
try{
......
±¨Îļø±ðÔÚÉí·ÝÈÏÖ¤ÖÐÕ¼ÖØҪλÖã¬ÊÇÈÏ֤ϵͳµÄÒ»¸öÖØÒª»·½Ú£¬ÔÚ½ðÈÚºÍÉÌҵϵͳÖй㷺ӦÓá£
±¨Îļø±ð³£Óñ¨Îļø±ðÂ루Message Authentication Code,¼´MAC£©×÷Ϊ¼ø±ðµÄ»ù´¡£¬
......