User-submitted Java Projects

27
2347 reads
deep07's picture

Submitted by

deep07
Tags:

Stack Example
The above program demonstrates how to use Stack Collections in java.
Run It Now!
66
2285 reads
deep07's picture

Submitted by

deep07
Tags:

Stack Example
The above program demonstrates how to use Stack Collections in java.
Run It Now!
39
2346 reads
Nelly's picture

Submitted by

Nelly
Tags:

Stack Example
The above program demonstrates how to use Stack Collections in java. The below example defines a Stack Object which adds the object of Circle12 and Rectangle.The push() method is used to insert an object unto the the stack wheras the pop() method removes an object from the stack.The peek() method returns the object which is on top of the stack.
Run It Now!
35
2598 reads
deep07's picture

Submitted by

deep07
Tags:

Stack Example
The above program demonstrates how to use Stack Collections in java.
Run It Now!
139
2453 reads
AnilKumar's picture

Submitted by

AnilKumar
Tags:

Vectors Example
The above program demonstrates how to use Vector Collections in java.
Run It Now!
67
2376 reads
Sorting using Comparator Objects
The below example demonstrates how to use collections with objects. The below program defines a TreeSet which only takes invoice objects and displays it as output.
Run It Now!
65
2335 reads
Implementing a Sortable Class
The below example demonstrates how to use collections with objects. The below program defines a TreeSet which only takes invoice objects and displays it as output.
Run It Now!
240
4177 reads
Jordach's picture

Submitted by

Jordach
Collection Algorithms
The below program demonstrates how to use ArrayList in java.
Run It Now!
81
2271 reads
Using the Stack Collection
The below example demonstrates how to implement stack in java.
Run It Now!