Generics are a built-in language feature that will make your software more reliable. This lesson discusses the following topics:
Introduction
This section explains some common shortcomings associated with non-generic code. Specifically, it shows how certain kinds of bugs will crash an application at runtime, since they are not detectable by the compiler.
Generic Types
This section explains generic type declarations, type variables, type parameters, and type arguments. It also describes the naming conventions that are specific to generics.
Generic Methods and Constructors
This section shows how type parameters can be used to define generic methods and constructors.
Bounded Type Parameters
This section describes how type parameters can specify an upper bound that limits the kind of types that can be passed in.
Subtyping
This section describes how generic subtyping differs from non-generic subtyping.
Wildcards
This section continues the discussion of subtyping by describing bounded and unbounded wildcards.
Type Erasure
This section describes type erasure, raw types, and unchecked warnings.
Author: strong
Packages
This lesson explains how to bundle classes and interfaces into packages, how to use classes that are in packages, and how to arrange your file system so that the compiler can find your source files.
Learning the Java Language
This trail covers the fundamentals of programming in the Java programming language.
Object-Oriented Programming Concepts teaches you the core concepts behind object-oriented programming: objects, messages, classes, and inheritance. This lesson ends by showing you how these concepts translate into code. Feel free to skip this lesson if you are already familiar with object-oriented programming.
Language Basics describes the traditional features of the language, including variables, arrays, data types, operators, and control flow.
Classes and Objects describes how to write the classes from which objects are created, and how to create and use the objects.
Interfaces and Inheritance describes interfaces—what they are, why you would want to write one, and how to write one. This section also describes the way in which you can derive one class from another. That is, how a subclass can inherit fields and methods from a superclass. You will learn that all classes are derived from the
Objectclass, and how to modify the methods that a subclass inherits from superclasses.
Numbers and Strings This lesson describes how to use
NumberandStringobjects The lesson also shows you how to format data for output.
Generics are a powerful feature of the Java programming language. They improve the type safety of your code, making more of your bugs detectable at compile time.
Packages are a feature of the Java programming language that help you to organize and structure your classes and their relationships to one another.
javascript get value from popup window
Hi,
anybody knows the way to return values from child window to parent window
Use window.opener in the child window, or the variable you used to store the window object in the parent window.
Best of lcuk.
FileStructureToHTML - 檔案報表產生器

軟體:FileStructureToHTML(版本:1.12)
類別:檔案工具
性質:Freeware(506 K)
【編輯/王國淵】
硬碟裡頭存放了各種資料,每當要整理時,實在是令人頭痛,尤其在某些需要將電腦裡的檔案整理成報表的時候,這對於一般人來說,實在是一件相當麻煩的事,但是如果此時有了 FileStructureToHTML 的幫助,相信可以省去你相當多的麻煩。
FileStructureToHTML 是一款免費的檔案報表產生軟體,它能夠依照使用者所指定的目錄,去對目錄裡的髓有檔案產生 HTML 格式的報表,讓使用者可以透過這些報表瞭解目錄裡到底有哪些資料。
透過 FileStructureToHTML 產生的報表,可以只是目錄的樹狀結構,或者也可以詳盡到每個檔案的檔案大小、創建、修改日期,讓使用者可以依照自己的需求去彈性調整所需要的報表內容。
下載:http://switch.dl.sourceforge.net/sourceforge/fsth/fsth1.12_setup.exe
Samedir - 目錄同步精靈
Samedir - 目錄同步精靈
軟體:Samedir(版本:3.9.7)
類別:備份工具
性質:Freeware(708 K)
【編輯/王國淵】
大家的電腦裡頭都存放了許多的資料,這些資料可能是公司的重要文件、個人的信件、照片,或者是辛苦收集來的各種資料。這所謂資料無價,如果這些資料因為硬碟損毀或是電腦中毒而毀於一旦,你必須花多少時間才能把他們再找回來?光是想就令人害怕。不過別擔心,只要定期做好資料的備份工作,資料損毀的惡運就不會降臨到你頭上。
經過不斷的灌輸,相信大多數使用者都開始重視自己電腦中資料的安全,但是說到備份資料這件繁複的工作,如果老是得要手動操作,日子久了,人的惰性就會慢慢戰勝資料的重要性了,此時,你就需要一款備份工具來幫你全自動完成資料備份的工作,免得因為時間一久,好不容易建立起的資料安全觀念都被拋到九霄雲外。
要怎麼樣簡單備份重要的資料呢?其實你可以使用 Samedir 這一款免費的資料備份工具。它的操作十分簡單,使用者只需要指定好想要備份的目錄,以及存放的目的地,Samedir 就能夠幫你迅速地進行備份的工作。
而 Samedir 與一般同類型備份工具最大的不同,就是它具有「快照」的功能,讓使用者可以藉由隨身碟這樣容量較小的儲存裝置,來同步兩個大容量的目錄。你可以透過「快照」的功能,來輕鬆同步公司與家中的電子郵件目錄,讓兩端的資料保持一致,而不需要備份下整個目錄,讓你可以方便地進行資料的同步工作喔!
下載:http://samedir.sbn.bz/Samedir397.exe
Text Magician - 文字檔處理專家

軟體:Text Magician(版本:N/A)
類別:文書處理
性質:Freeware(282 K)
【編輯/王國淵】
從事文書工作的人相信都有需要大量更改某些文字檔案的經驗,可能是某個名詞老闆不喜歡,要你把他們通通換掉,這個時候,有散落在數百個檔案裡的特定名詞需要置換,如果一個個去找,那豈不是累斃了!諸如此類與文字檔案相關的編修工作,其實你都可以交給 Text Magician 來替你處理。
Text Magician 是一款免費的文字處理工具,它能夠替使用者批次處理所指定的所有文字檔案,讓你想要進行的文字處理工作一次完成,而不再需要你自己辛苦地一個一個修改,替你節省下許多寶貴的時間。
你能夠透過 Text Magician 來進行特定字串的替換、大小寫轉換、插入特定內容於文字檔頭或檔尾、去除結尾或開頭的空格、每隔多少行數將檔案分割、移除文字方塊、替文字檔增添行號…等,幾乎你想要的文字檔批次處理功能,都可以在 Text Magician 裡頭找到喔。
下載:http://www.davidpye.com/freeware/
Milk Shake 辛勤的貨車司機
Milk Shake 辛勤的貨車司機
軟體:Milk Shake(版本:N/A)
類別:競速遊戲
性質:Freeware()
【編輯/宗文】
遊戲中玩家必須將乳品店的牛奶送到商店中販賣,而在回程中又將要把空瓶子送回乳品店。當遊戲限制的時間到了,或者所有的牛奶瓶都打破了遊戲就會結束。因此在遊戲中不是速度快就能過關,可別忘了玩家是必須要將牛奶送抵商店的,一路上必須小心翼翼將這些商品保護好。遊戲中會出現蛋糕,如能取得可以增加積分,另外一個會出現的物品是漏斗,這對於玩家來說相當重要,因為取得的話可以增加限制的時間。

遊戲中一共有三條路徑供玩家選擇,可以從同一條路徑出發與回來,也可以從一條路徑出發,而從另一條回來。不過玩家要注意,在整個星期送牛奶的過程中,某一天的某條路徑可能會封閉,如此一來就不能走了。遊戲中分別有城市、農場與山隘三條路徑,城市的道路平坦,看起來似乎好走牛奶瓶不易打破,但是要注意路上可是有許多車輛,一撞上車子也是會讓牛奶瓶受損的。而農場的路徑會出現農夫駕著車輛推草堆,玩家要小心閃避,撞上的話是會打破牛奶瓶的。最後一條路徑是通過山隘,此路徑是最短的,不過要走此路徑的話,將會遇上大雪與巨石的阻礙。

遊戲中除了一般晴朗的天氣外,還會出現不同的天氣喔!例如下著磅礡大雨、或者出現濃濃的霧等等,除了增加遊戲的困難度之外,也讓遊戲內容豐富不少。遊戲一共有兩種模式,一種是自由模式,另一種則是玩家必須完成一星期送牛奶的任務模式。在星期任務模式中,在每一天完成後都會出現今天遞送牛奶的狀況報表,玩家可以看看哪一天的表現最佳,也可以看到哪一天打破最多的牛奶瓶。

遊戲操控說明:
1.方向鍵中的上鍵可以加速與前進,下鍵則能減速或者後退。
2.方向鍵中的左右鍵控制車輛左右轉。
3.利用空白鍵可以按喇叭。
下載:http://www.miniclip.com/games/milk-shake/en/
Relic Rush 珍寶大盜
Relic Rush 珍寶大盜
軟體:Relic Rush(版本:N/A)
類別:動作遊戲
性質:Freeware()
【編輯/宗文】
這是一款動作遊戲,玩家要引導主角前往各種場所,來取得珍貴的寶物,在不同的關卡會出現不同的看守人物或動物(如第二關中恐怖的鱷魚。),也會出現許多機關,玩家必須避開他們,否則可是會扣生命值的。
遊戲的第一關中會出現許多的警衛,他們拿著手電筒不斷地來回巡視,因此玩家要注意避開他們。除此之外,還有許多要注意的物品,例如監視器或者紅外線偵測器等等,玩家必須抓好時間差,避開監視器監視的範圍,或者等待紅外線偵測器沒有偵測的瞬間,然後快速通過。另外也有許多移動平台,也是要抓好時間差來上另一個平台。

遊戲操控方面,利用方向鍵中的左右鍵移動主角,空白鍵可以進行跳躍。
下載:http://www.armorgames.com/games/relicrush.html
Aengie Quest 迷路的妮姬
Aengie Quest 迷路的妮姬
軟體:Aengie Quest(版本:N/A)
類別:益智遊戲
性質:Freeware()
【編輯/宗文】
這是一款益智遊戲,玩家必須在每一個關卡中,引導女主角到達呈現閃爍不同顏色的出口處,如此才能順利過關,並且可以挑戰更艱難的下一關。遊戲中每一個關卡都會出現通關密碼,玩家只要在片頭畫面中輸入密碼,這樣就可以從輸入密碼的關卡開始玩,而不用每次從頭開始玩。
有時候玩家會看到有一些閘門關閉,而擋住女主角的去路,此時玩家必須找尋開關,並且利用箱子來壓住開關(有時必須移動數個箱子來壓住不同的開關),如此閘門便能開啟,女主角也才能順利通過。另外會出現許多不同顏色被鎖著的門,玩家必須取得相對應同顏色的鑰匙,如此才能打開門,而能繼續往原本被封鎖的區域前進。

遊戲操控方面,利用四個方向鍵來移動女主角,如遇到箱子再按往相對應的方向鍵便能推動箱子。遊戲中由於角度關係,可能有一些死角看不到,玩家可能必須多嘗試才能順利通過或取得原本看不到的鑰匙。
下載:http://www.freegamesjungle.com/aengie_quest.html