User-submitted Java Projects

80
2415 reads
Stephens's picture

Submitted by

Stephens
Reference Assignment
The below example demonstrates how to assign a reference to an object. The below example creates two different objects for class Point.
Run It Now!
80
1878 reads
Sharon's picture

Submitted by

Sharon
Proxy Pattern
This example demonstrates Proxy Pattern in java.Proxy Pattern provide a “Placeholder” for an object to control references to it.
Run It Now!
80
3538 reads
skysiren's picture

Submitted by

skysiren
Coupon Collector

Given N distinct card types, how many random cards do you need do collect before you have (at least) one of each type? This program simulates this random process.


Run It Now!
79
1905 reads
Solution_of_Dinning_Philosopher_Problem
Problem Statement Five silent philosophers sit at a table around a bowl of spaghetti. A fork is placed between each pair of adjacent philosophers. Each philosopher must alternately think and eat.
Solution_of_Dinning_Philosopher_Problem

Run It Now!
79
2152 reads