javaÖеÄtoString() ·½·¨£¨¶à¿´±¾ÎĵÄÀý×Ó£¡£©
toString() ·½·¨£º
toString()·½·¨ÔÚObjectÀàÖж¨Ò壬Æä·µ»ØÖµÊÇStringÀàÐÍ£¬ÃèÊöµ±Ç°¶ÔÏóµÄÓйØÐÅÏ¢
ÔÚ½øÐÐStringÓëÆäËüÀàÐÍÊý¾ÝµÄÁ¬½Ó²Ù×÷ʱ£¬×Ô¶¯µ÷ÓÃtoString()·½·¨
¿ÉÒÔ¸ù¾ÝÐèÒªÔÚÓû§×Ô¶¨ÒåÀàÐÍÖÐÖØÐ´toString()·½·¨
»ù±¾ÀàÐÍÊý¾Ýת»»ÎªStringÀàÐÍʱ£¬µ÷ÓÃÁ˶ÔÓ¦·â×°ÀàµÄtoString()·½·¨
public class Person {
private String name;
private int age;
private char sex;
public Person()
{
}
public Person(String name,int age, char sex)
{
this.name = name;
this.age = age;
this.sex = sex;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
public char getSex() {
return sex;
}
public void setSex(char sex) {
this.sex = sex;
}
public boolean equals(Object obj)
{
if(obj==null)
{
return false;
}
if(obj==this)//´«µÝ½øÀ´µÄ²ÎÊýÊÇ·ñµÈÓÚ±¾¶ÔÏó
{
 
Ïà¹ØÎĵµ£º
create PROCEDURE pagelist
@tablename nvarchar(50),
@fieldname nvarchar(50)='*',
@pagesize int output,--ÿҳÏÔʾ¼Ç¼ÌõÊý
@currentpage int output,--µÚ¼¸Ò³
@orderid nvarchar(50),--Ö÷¼üÅÅÐò
@sort int,--ÅÅÐò·½Ê½£¬1±íʾÉýÐò£¬0±íʾ½µÐòÅÅÁÐ
......
platform ['plætfɔ:m] n.ƽ̨
standard edition±ê×¼°æ
enterprise ['entəpraiz] n. ÆóÒµ
bytecode n.×Ö½ÚÂ룬×Ö½Ú´úÂë
verifier n. ¼ìÑé»ú
modifier [‘mɔdifaiə] n.ÐÞÊÎÓï
attribute [‘ætribju:t] vt.(to)°Ñ…¹éÒòÓÚn.ÊôÐÔ£¬ÌØÐÔ
declaration ......
FacesContext context = FacesContext.getCurrentInstance();
HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest();
String parameterValue = request.g ......
´ÓCore Javaµ½Thinking in Java
JavaÊÇÒ»ÖÖ¿çÆ½Ì¨¡¢ÃæÏò¶ÔÏ󡢸øÓèÍøÂç¼°Ö§³Ö¶àýÌåµÄ±à³ÌÓïÑÔ£¬²¢¿É²åÈëµ½HTMLÎĵµÖС£
1.ÔÚhtmlÎĵµÖÐÌí¼ÓÁ´½Ó£¬¼´ÔÚ<body>±êÇ©¼ä²åÈëÒÔÏ´úÂ룺
<applet code=ÀàÃû.class width=¿í¶È height=¸ß¶È></applet>
2.·â×°ÊÇÒ»ÖÖ½«´úÂë¼°Æä´¦ÀíµÄÊý¾Ý°ó¶¨ÔÚÒ»Æð± ......