User-submitted Java Projects

27
2165 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
2136 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
2182 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
2437 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
2260 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
2225 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
2179 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
3977 reads
Jordach's picture

Submitted by

Jordach
Collection Algorithms
The below program demonstrates how to use ArrayList in java.
Run It Now!
81
2142 reads
Using the Stack Collection
The below example demonstrates how to implement stack in java.
Run It Now!
68
2150 reads
AnilKumar's picture

Submitted by

AnilKumar
Joining Threads
The belo example demonstrates how to use threads in java. The below program reads a file during the execution of thread.At the same time it tries to print 'a' in the main() method.
Run It Now!