2011年6月13日

【笔记】Eclipse and Java for Total Beginners—016

摘要: Lesson 16 – Create main Method and JAR FileIntroduce main methodWrite a main methodRun MyLibrary as Java applicationExport to JAR file and run from Windows在MyLibrary.java里添加main method。 1 public static void main(String[] args) { 2 // create a new MyLibrary 3 MyLibrary testLibrary = new MyLibrary(&qu 阅读全文

posted @ 2011-06-13 15:29 yf.x 阅读(335) 评论(0) 推荐(1)

【笔记】Eclipse and Java for Total Beginners—015

摘要: Lesson 15 – Finish MyLibrary MethodsCreate test for getAvailableBooksCreate getAvailableBooksCreate getUnavailableBooks 1 package org.totalbeginner.tutorial; 2 3 import java.util.ArrayList; 4 5 import org.omg.CORBA.PUBLIC_MEMBER; 6 import org.totoalbeginner.tutorial.Person; 7 8 import junit.framewor 阅读全文

posted @ 2011-06-13 14:29 yf.x 阅读(367) 评论(0) 推荐(1)

【笔记】Eclipse and Java for Total Beginners—014

摘要: Lesson 14 – Finish checkOut MethodWrite getBooksForPerson methodIntroduce for each loopIntroduce logical ‘and’ operator &&NullPointerException errorsComplete checkOut Method 1 package org.totalbeginner.tutorial; 2 3 import java.util.ArrayList; 4 5 import org.totoalbeginner.tutorial.Person; 6 阅读全文

posted @ 2011-06-13 10:26 yf.x 阅读(304) 评论(0) 推荐(1)

【笔记】Eclipse and Java for Total Beginners—013

摘要: Lesson 13 – Continue checkOut MethodTest checkOut, checkIn methodsFix compiler error – misplaced {}Add test for maximum booksCreate test for getBooksForPerson() methodRefactoring – extrack method 1 package org.totalbeginner.tutorial; 2 3 import java.util.ArrayList; 4 5 import org.omg.CORBA.PUBLIC_ME 阅读全文

posted @ 2011-06-13 09:50 yf.x 阅读(259) 评论(0) 推荐(0)

【笔记】Eclipse and Java for Total Beginners—012

摘要: Lesson 12 – Create checkOut, checkIn MethodsCreate test for checkOut, checkIn methodsWrite checkout methodIntroduce if / then / else syntaxIntroduce boolean methodWrite checkIn method1. testCheckOut Method Test both the checkOut and checkIn methodsCheck Out a bookCheck Out second bookCheck in a book 阅读全文

posted @ 2011-06-13 08:51 yf.x 阅读(337) 评论(0) 推荐(0)

导航