User-submitted Java Projects

47
4942 reads

February 22, 2013

Overloading Constructors


The program below demonstrates a class Box that defines three constructors to initialize the dimensions of a box various ways.

59
1799 reads

February 22, 2013

Continue Statement


The program below demonstrates the continue statement.

57
1653 reads

February 22, 2013

Accessing 2D Array Using For-Each


Use for-each style for on a two-dimensional array.

51
1677 reads

February 21, 2013

Ternary Operator


The program below demonstrates a ternary operator(?:).

38
1533 reads

February 21, 2013

Finally


This example demonstrates the use of finally keyword. finally creates a block of code that will be executed after a try/catch block has completed and before the code following the try/catch block.

23
1624 reads

February 19, 2013

Overloading in Inheritance


This example demonstrates that methods with differing type signatures are overloaded -- not overridden.

34
1673 reads

February 19, 2013

Use of Super()


This example demonstrates using super to overcome name hiding.

215
5268 reads
Lotto Lucky Pick
My version of PCSO Lotto Lucky Pick Algorithm. It will help you generate your lucky lotto combinations.
Lotto Lucky Pick

Run It Now!
234
6221 reads
MagicCards
This is a simple java program which ask the user to choose one card but he/she will not say what card it is. Then after a few question the program will display his/her cards ^_^...
MagicCards

Run It Now!
248
6467 reads
flamesarray
This is the classic flames game with different logic.I used arrays to implement this.
flamesarray

Run It Now!