User-submitted Java Projects

47
4104 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
1590 reads

February 22, 2013

Continue Statement


The program below demonstrates the continue statement.

57
1479 reads

February 22, 2013

Accessing 2D Array Using For-Each


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

51
1507 reads

February 21, 2013

Ternary Operator


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

38
1368 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
1473 reads

February 19, 2013

Overloading in Inheritance


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

33
1496 reads

February 19, 2013

Use of Super()


This example demonstrates using super to overcome name hiding.

215
5009 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
5960 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
6145 reads
flamesarray
This is the classic flames game with different logic.I used arrays to implement this.
flamesarray

Run It Now!