User-submitted Java Projects

47
4821 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
1767 reads

February 22, 2013

Continue Statement


The program below demonstrates the continue statement.

57
1623 reads

February 22, 2013

Accessing 2D Array Using For-Each


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

51
1650 reads

February 21, 2013

Ternary Operator


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

38
1512 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
1602 reads

February 19, 2013

Overloading in Inheritance


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

33
1640 reads

February 19, 2013

Use of Super()


This example demonstrates using super to overcome name hiding.

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

Run It Now!