Using Windows Live writer

Source: Internet
Author: User

Try inserting code

StudentClientpackage com.test.clienttest;import java.util.List;import com.lk.test.client.Student;import com.lk.test.client.StudentBizDelegate;import com.lk.test.client.StudentBizService;public class StudentClient {// Service Objectprivate StudentBizService service;// Service Delegate Objectprivate StudentBizDelegate delegate;// initpublic StudentClient() {service = new StudentBizService();delegate = service.getStudentBizPort();}// print studentprivate void printStudent(Student s) {System.out.println("/nID:" + s.getId() + "/tName:" + s.getName()+ "/tPWD:" + s.getPassword() + "/tAge:" + s.getAge()+ "/tBirth day:" + s.getBirthDay() + "/tHeight:"+ s.getHeight());}// get student by idpublic void showStudentInfo(Integer ID) {Student s = delegate.getStudentInfoByStuID(ID);printStudent(s);}// get students by sexpublic void showStudentBySex(boolean isMale) {List
 
   list = delegate.getStudentsInfoBySex(isMale);for (Student s : list) {printStudent(s);}}// updatepublic void updateStudent(Integer id, String pwd, Student stu) {boolean suc = delegate.updateStudentInfo(id, pwd, stu);System.out.println("Update result:" + suc);}// Main testpublic static void main(String[] args) {StudentClient sc = new StudentClient();// 1.Get a student information by student's id.sc.showStudentInfo(1001);// print result// ID:1001 Name:zhangSan PWD:111111 Age:21 Birth// day:2010-06-27T20:09:14.437+08:00 Height:175.5sc.showStudentInfo(1003);// print result// ID:1002 Name:liSi PWD:222222 Age:25 Birth// day:2010-06-27T20:09:44.250+08:00 Height:185.5// 2.Get all students - Malesc.showStudentBySex(true);// print result/** *  * ID:1002 Name:liSi PWD:222222 Age:25 Birth * day:2010-06-27T20:10:45.390+08:00 Height:181.5 *  * ID:1002 Name:wangWu PWD:222222 Age:25 Birth * day:2010-06-27T20:10:45.390+08:00 Height:182.5 */// 3. omit ..update ......}}
 


 

Try the map insertion function.

 

Try hyperlink

How to Use the live writer client to publish csdn blog articles

Try the UPDATE function

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.