javaÊý¾Ý½á¹¹½²ÊöÖ®Á´±í
¹ØÓÚjavaµÄÁ´±í˼Ïë
ÏÈ¿É¿´ÒÔÏÂÀý×Ó
ÏȽ¨Á¢Ò»¸öʵÀý(Student.java)
package com.yz.mylink;
public class Student {
private Integer id;
private String name;
private Integer age;
private String classes;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Integer getAge() {
return age;
}
public void setAge(Integer age) {
this.age = age;
}
public String getClasses() {
return classes;
}
public void setClasses(String classes) {
this.classes = classes;
}
}
½¨Á¢½Úµã(Node.java)
package com.yz.mylink;
public class Node {
Object data;
Node next;
public Node(Object data){
this.data=data;
next=null;
}
public Object getData() {
return data;
}
public void setData(Object data) {
this.data = data;
}
public Node getNext() {
return next;
}
public void setNext(Node next) {
this.next = next;
}
}
½¨Á¢µ÷Ó÷½·¨ (Link.java)
package com.yz.mylink;
public class Link {
Node head;
public Link(){
head=new Node(null);
}
/*
* ×·¼Ó
*/
public void addNode(Object data){
Node p=head;
while(true){
if(p.getNext()!=null){
p=p.getNext();
}else{
p.setNext(new Node(data));
break;
}
}
}
public void addNode(Integer id,Object data){
Node p=head;
while(true){
if(p.getNext()!=null){
p=p.getNext();
Student stu=(Student) p.getData();
if(stu.getId()==id){
Node mynode=new Node(data);
mynode.setNext(p.getNext());
p.setNext(mynode);
break;
}
}else{
break;
}
}
}
/*
* ɾ³ýÖ¸¶¨ÔªËØ
*/
public void delNodestu(Integer id){
Node p=head;
while(true){
if(p.getNext()!=null){
Node pp=p.getNext();
pp=p.getNext();
Student stu=(Student) pp.getData();
if(stu.getId()==id){
p.setNext(p.getNext().
Ïà¹ØÎĵµ£º
JavaÓïÑÔµÄÊäÈëÊä³ö¹¦ÄÜÊÇÊ®·ÖÇ¿´ó¶øÁé»îµÄ£¬ÃÀÖв»×ãµÄÊÇ¿´ÉÏÈ¥ÊäÈëÊä³öµÄ´úÂë²¢²»ÊǺܼò½à£¬ÒòΪÄãÍùÍùÐèÒª°ü×°Ðí¶à²»Í¬µÄ¶ÔÏó¡£ÔÚJavaÀà¿âÖУ¬IO²¿·ÖµÄÄÚÈÝÊǺÜÅÓ´óµÄ£¬ÒòΪËüÉæ¼°µÄÁìÓòºÜ¹ã·º:±ê×¼ÊäÈëÊä³ö£¬ÎļþµÄ²Ù×÷£¬ÍøÂçÉϵÄÊý¾ÝÁ÷£¬×Ö·û´®Á÷£¬¶ÔÏóÁ÷£¬zipÎļþÁ÷....±¾ÎĵÄÄ¿µÄÊÇΪ´ó¼Ò×öÒ»¸ö¼òÒªµÄ½éÉÜ¡£
¡¡¡¡Á ......
Õ⼸ÌìÔÚ¿´JAVA£¬Í¼Êé¹Ý½èµÄÒ»±¾JAVA¿ª·¢´óÈ«£¬Í¦ºñµÄÒ»±¾£¬ÄÚÈݺܶ࣬µ«²»Éî¡£°üÀ¨JAVAµÄ»ù±¾Óï·¨¡¢Ï̱߳à³Ì¡¢×ÀÃæ³ÌÐò¡¢Ö÷ÒªÀà¿â¡¢ÒÔ¼°ºóÃæJSP²¿·Ö¡£¿´ÁË5ÌìÁË£¬¸Õ°ÑJÏ߳̿´Íê¡£ÓÉÓÚ֮ǰѧ¹ýC++£¬ËùÒÔÇ°Ãæ»ù´¡Êý¾ÝÀàÐÍ£¬»ù±¾Óï·¨µÈµÈÖ»×ÅÖØ¿´¿´JAVA¶ÀÌصĵط½¡£ÒÔÏÂÊÇÎÒ¸öÈËÀí½â×ܽáµÄһЩJAVAÓëC/C++²»Í¬µØ·½¼°×Ô¼ºµÄ¶ÔJ ......
ת×Ô£ºIBM¼¼ÊõÉçÇø2009 Java רÇø×îÊÜ»¶ÓÄÚÈÝ
×îÊÜ»¶ÓµÄÈÈÃÅÖ÷Ìâ
Web ¿ª·¢
2009
Ä꣬Web 2.0 Èȳ±´Ùʹ Web ¿ª·¢¼ÌÐø³ÉΪµ±Ç°×îÈÈÃŵÄÖ÷Ìâ¡£ÆäÖУ¬»ùÓÚ¶¯Ì¬ÓïÑÔ Goovy µÄÐÂÐË Web ¿ª·¢¿ò¼Ü Grails
³ÉΪÁ˱¸ÊÜÖõÄ¿µÄÐÂÐÇ¡£³ý´ËÖ®Í⣬Ðí¶à´«Í³µÄ»ùÓÚ Java ÓïÑ﵀ Web ¿ª·¢¿ò¼Ü£¬Èç Struts¡¢JSF¡¢GWT
µÈ£¬Ò²¶¼ÈÚÈë ......