User-submitted Java Projects

71
1264 reads
Praveen's picture

Submitted by

Praveen
Builder Pattern
This example demonstrates Builder Pattern in java. The Builder pattern defines an instance for creating an object but letting subclasses decide which class to instantiate and Allows a finer control o
Run It Now!
77
2433 reads
Protected Modifier in java. - Calories Example
The below example demonstrates how to use Protected Modifier in java.
Run It Now!
69
2204 reads
Protected Modifier in java.
The below example demonstrates how to use Protected Modifier in java. The below example defines a protected class member of Class Employee named numEmployee , and accesses from Class FileProtect by c
Run It Now!
144
3506 reads
Java modifers example
The below example demonstrates how to use modifiers in java. The example allows the user to view calorie difference of the specified chocolates.
Run It Now!
26
3441 reads
SuperKodes's picture

Submitted by

SuperKodes
Clone Array example
The below example demonstrates how to clone an array in java. The below example allows the user to view the contents of clone array as output.
Run It Now!
80
3541 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!
71
2906 reads
Anonymous Local Inner Classes
The below example demonstrate how to implement Innerclass in java. The example allows the user to view balance details as output.
Run It Now!
72
2612 reads
skysiren's picture

Submitted by

skysiren
ArrayList Collection
The below example demonstrates how to use ArrayList Collection in java.
Run It Now!
31
2360 reads
skysiren's picture

Submitted by

skysiren
Tags:

Twenty Questions

Prints the instructions for drawing a dragon curve of orders 0
* through 5.


Run It Now!
25
2328 reads
poojak's picture

Submitted by

poojak
factorial
This programs prints factorial of a number.The output it prints is 120 as the input given is 5. Change the output to see your desired results.
Run It Now!