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

JavaÖеIJÎÊýµ÷ÓÃ

     Java³ÌÐòÉè¼ÆÓïÑÔʹÓÃÖµµ÷Óá£Ò²¾ÍÊÇ˵¡£·½·¨µÃµ½µÄÊÇËùÓвÎÊýÖµµÄÒ»¸ö¿½±´£¬ÌرðÊÇ£¬·½·¨²»ÄÜÐ޸Ĵ«µÝ¸øËüµÄÈκβÎÊý±äÁ¿µÄÄÚÈÝ¡£
    ÏÂÃæ˵Ã÷ÏÂÕâÖÖÇé¿ö¡£¼Ù¶¨Ò»¸ö·½·¨ÊÔͼ½«Ò»¸ö²ÎÊýÖµÔö¼ÓÖÁ3±¶£º
public static void func(double x){
  x=3*x
}
µ÷ÓÃÕâ¸ö·½·¨
double d=10;
func(10);
ÎÞÂÛÔõÑùµ÷ÓÃÕâ¸ö·½·¨£¬Ö´ÐÐÖ®ºó£¬dµÄÖµ»¹ÊÇ10¡£ÏÂÃæÊÇËû¾ßÌåÖ´ÐеĹý³Ì¡£
1)¡¢x±»³õʼ»¯ÎªdÖµµÄÒ»¸ö¿½±´
2)¡¢x*3ºóֵΪ30¡£µ«ÊÇdÖµÈÔΪ10¡£
3)¡¢·½·¨½áÊøÖ®ºó£¬²ÎÊý±äÁ¿x²»ÔÙʹÓá£
·½·¨²ÎÊý¹²ÓÐÁ½ÖÖÀàÐÍ;
1)¡¢»ù±¾µÄÊý¾ÝÀàÐÍ(Êý×Ö¡¢²¼¶ûÐÍ)¡£
2)¡¢¶ÔÏóÒýÓá£
Ò»¸ö·½·¨²»¿ÉÄÜÐÞ¸ÄÒ»¸ö»ù±¾Êý¾ÝÀàÐ͵IJÎÊý£¬¶ø¶ÔÏóÒýÓÃ×÷Ϊ²ÎÊý¾Í²»Í¬ÁË¡£ºÜÈÝÒ×Ð޸ĶÔÏóÀïÃæµÄÊý¾Ý¡£
public static void func(employe x) //employe¶ÔÏóÔÚÏÂÃæ¸ø³ö¡£
{
  x.setage(20);
}
µ±µ÷ÓÃ
harry =new employe(……)£»
func(harry);
¶ÔÏóÒýÓõÄÖ´Ðйý³ÌΪ£º
1)¡¢x±»³õʼ»¯ÎªharryÖµµÄÒ»·Ý¿½±´£¬ÕâÀïÊÇÒ»¸ö¶ÔÏóµÄÒýÓá£
2)¡¢setage·½·¨Ó¦ÓÃÓÚÕâ¸ö¶ÔÏóµÄÓ¦Óá£xºÍharryͬʱÒýÓÃÄǸöemploye¶ÔÏóµÄage¡£
3)¡¢·½·¨½áÊøºó£¬²ÎÊý±äÁ¿x²»ÔÙʹÓᣵ±È»£¬¶ÔÏó±äÁ¿harry¼ÌÐøÒýÓÃÄǸöage¸Ä±äµÄ¶ÔÏó¡£
  ʵÏÖÒ»¸ö¸Ä±ä¶ÔÏó²ÎÊý״̬µÄ·½·¨²¢²»ÊÇÒ»¼þÄÑÊ¡£ÀíÓɺܼòµ¥£¬·½·¨µÃµ½µÄÊǶÔÏóÒýÓõĿ½±´£¬¶ÔÏóÒýÓü°ÆäËûµÄ¿½±´Í¬Ê±ÒýÓÃͬһ¸ö¶ÔÏó¡£
Java³ÌÐòÉè¼ÆÓïÑÔ¶Ô¶ÔÏó²ÉÓõIJ»ÊÇÒýÓõ÷Óã¬Êµ¼ÊÉÏ£¬¶ÔÏóÒýÓýøÐеÄÊÇÖµ´«µÝ¡£
ÏÂÃæ¾ÙÀý˵Ã÷Ï£º
class employer{
 private String name;
 private int age;
 private String addr;
 public employer(String a,int b,String c){
  name=a;
  age=b;
  addr=c;
  }
 public void setname(String name){
  this.name=name;
  }
 public String getname(){
  return name;
  }
 public void setage(int age){
  this.age=age;
  }
 public int getage(){
  return age;
  }
 public void setaddr(String addr){
  this.addr=addr;
  }
 public String getaddr(){
  return addr;
  }
 }
public class tes


Ïà¹ØÎĵµ£º

´«ÖDz¥¿Íjavaѧϰ 3gÊÖ»ú¿ª·¢Android 1

½ñÌìÊÇ
3g
ÊÖ»ú¿ª·¢
Android
µÄµÚÒ»Ì죬ÊÇÀèÀÏʦ½²µÄ£¬ÀèÀÏʦÖ÷Òª½éÉÜÁË
3g
£¬ÒÔ¼°
Android
ºÍ¿ª·¢
Helloworld
³ÌÐò¡£
 
      
3g
ÊÇʲô
£º
3G
£¬È«³ÆΪ
3rd Generation
£¬ÖÐÎĺ¬Òå¾ÍÊÇÖ¸µÚÈý´úÊý×ÖͨÐÅ¡£
Ëùν
3G
£¬ÊÇÖ¸½«ÎÞÏßͨÐÅÓë¹ú¼Ê»¥ÁªÍøµÈ¶àýÌåͨÐŽá ......

javaʵÏÖFTPÔ¶³ÌÎļþÒƶ¯£¨ÖØÃüÃû¡¢¸´ÖÆ¡¢¿½±´£©

Ê×ÏȾͱêÌâ˵Ã÷Ò»µã£¬javaʹÓÃorg.apache.commons.net.ftp.ftpclient°üÀ´²Ù×÷FTPÊǺÜˬµÎ£¬µ«¶ÔÔ¶³ÌÎļþ²Ù×÷£¬ºÃÏñûÓÐʵÏÖ
¸´ÖÆÎļþµÄ·½·¨¡£ÎÒÓõÄÊÇÎļþÒƶ¯(move)£¬°ÑÎļþ´ÓÒ»¸öÎļþ¼ÐÒƶ¯µ½ÁíÍâÒ»¸öÎļþ¼Ð¡£
±³¾°£º
     ÔÚactionÖвÙ×÷Ô¶³ÌFTP£¬ÊµÏÖÎļþÒƶ¯¡£³ÌÐòÔËÐÐÔÚ±¾»ú£¬FTPÊÇÒ»¸öLinux· ......

¶ÁÎļþ£¨java£©


ʹÓÃJava²Ù×÷Îı¾ÎļþµÄ·½·¨Ïê½â
ÕªÒª: ×î³õjavaÊDz»Ö§³Ö¶ÔÎı¾ÎļþµÄ´¦ÀíµÄ£¬ÎªÁËÃÖ²¹Õâ¸öȱº¶¶øÒýÈëÁËReaderºÍWriterÁ½¸öÀ࣬ÕâÁ½¸öÀ඼ÊdzéÏóÀ࣬WriterÖÐ write(char[] ch,int off,int
length)£¬flush()ºÍclose()·½·¨Îª³éÏó·½·¨£¬ReaderÖÐread(char[] ch,int off,int length)ºÍclose()·½·¨ÊdzéÏó·½·¨¡£×ÓÀàÓ¦¸Ã·Ö± ......

Java´úÂëÖظ´Ê¹ÓÃ

 Ê×ÏÈÔÚ¹«¹²ÀàдºÃÊý¾Ý¿âÁ¬½ÓºÍ¹Ø±Õ·½·¨£º
public static Connection getConnection(){
Connection conn = null;
try {
Context ic = new InitialContext();
DataSource source = (DataSource)ic.lookup("java:comp/env/jdbc/ownHome");
conn = source.getConnection();
} catch (NamingExcepti ......

java¶ÁÈ¡htmlÎļþ²¢³éÈ¡a hrefÏà¹ØÁ¬½ÓºÍÁ´½Ó±êÌâ

import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.*;
import java.io.*;
import java.nio.CharBuffer;
public class RegTest
{
    public static void main(String[] args)
    {
        //¶¨ÒåÒ»¸öÎÄÕÂÁÐ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ