User-submitted Java Projects

75
2501 reads
String Equal Example
The below program demonstrates how to compare Strings in java using equals method.
Run It Now!
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!
75
2504 reads
Stephens's picture

Submitted by

Stephens
Clonning an Object Example
The below example demonstrates how to clone an object in java. The below example creates two objects(p,q) of Class Point. The object p is cloned and assigned to object q.
Run It Now!
60
2149 reads
Sharon's picture

Submitted by

Sharon
Decorator pattern
This example demonstrates Decorator Pattern in java.Decorator Pattern add additional responsibilities dynamically to an object.
Run It Now!
187
1999 reads
Sharon's picture

Submitted by

Sharon
Composite Pattern
This example demonstrates Composite Pattern in java. The intent of this pattern is to compose objects into tree structures to represent part-whole hierarchies.
Run It Now!
55
1627 reads
Sharon's picture

Submitted by

Sharon
Flyweight Pattern
This example demonstrates Flyweight Pattern War-game in java. The intent of this pattern is to use sharing to support a large number of objects that have part of their internal state in common where
Run It Now!
49
1788 reads
Sharon's picture

Submitted by

Sharon
Adapter Pattern
This example demonstrates Adaptor Pattern in java.Adaptor Pattern Convert the interface of a class into another interface clients expect.
Run It Now!
324
5638 reads
Sharon's picture

Submitted by

Sharon
Bridge Pattern
This example demonstrates Bridge Pattern in java.Bridge Pattern Compose objects into tree structures to represent part-whole hierarchies.
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!
64
2695 reads
Cloning Objects with Object Data Fields Example
The below example demonstrates how to clone an object with object data field example.
Run It Now!