User-submitted Java Projects

30
2500 reads
KingLord007's picture

Submitted by

KingLord007
Tags:

Write A Method In Java.
The below program demonstrates how to write a method in Java.
Run It Now!
33
2486 reads
KingLord007's picture

Submitted by

KingLord007
Writing an Interface
The below example demonstrates how to Implement an Interface by Multiple Classes. The below example defines an Interface "Dutiable" which has two methods payDuty() and getDutyRate().
Run It Now!
33
2636 reads
KingLord007's picture

Submitted by

KingLord007
Use Inhertitance In Java.
The below program demonstrates how to use Inhertitance in java. The below program defines a Super Class named Auto which is extended by two Derived Class named EuropeanAuto & JapaneseAuto.
Run It Now!
342
12389 reads
NestorBueno's picture

Submitted by

NestorBueno
Tags:

Bingo card generator
A simple program to generate random card numbers for the Bingo game
Run It Now!
39
2411 reads
Nelly's picture

Submitted by

Nelly
39
2348 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!
30
2562 reads
eddie14's picture

Submitted by

eddie14
Implementing an Interface
The below example demonstrates how to implement an Interface in java. The below example implements an Interface named "FileFilter" which defines a method accept().
Run It Now!
36
2102 reads
eddie14's picture

Submitted by

eddie14
sampleRaone
Ra One Program
Run It Now!
69
2668 reads
Anglina85's picture

Submitted by

Anglina85
Short Variable.
The below example demonstrates how to assign values of short data-type to a variable. The below example prints the value of variable as output.

Run It Now!
23
2658 reads
sort
Most effective search algorithm Selection sort..!i made it still more effective without using temporary variable for swapping not only that i swapped 2 numbers in one line!to know look into it.
sort

Run It Now!