Announcing Programmr's new site - AI Camp - start coding cool AI programs - all in your browser!


User-submitted Java Projects

31
1827 reads
shixish's picture

Submitted by

shixish
Tags:

36
1906 reads
eddie14's picture

Submitted by

eddie14
sampleRaone
Ra One Program
Run It Now!
36
2415 reads
SillySall's picture

Submitted by

SillySall
Nested Inner Classes
The below program demonstrates how to create nested inner class in java. In the below example , Class Inner is defined within Class Outer and can access Class Outer's datafield.
Run It Now!
39
2058 reads
Named Local Inner Classes
The below program demonstrates how to create named local inner class.
Run It Now!
37
2719 reads
Anonymous Local Inner Classes
The below program demonstrates how to create anonymous local inner class.
Run It Now!
24
1942 reads
Non-Static Member Inner Classes
The below program demonstrates how to create non-static inner class in java. In the below program, class LifeBenefit is a innerclass to class LifePolicy .
Run It Now!
32
2205 reads
Static Member Inner Classes
The below program demonstrates how to create a static inner class and access it. The below program has class LifePolicy which defines a Static Inner class LifeBenefit which extends class Benefit.
Run It Now!
35
2070 reads
SillySall's picture

Submitted by

SillySall
Object Cloning
The below program demonstrates how to clone an object. In the below program x1,x2 are two objects of class TestClone1 which implements cloneable.The x1 object is clone and assigned to x2 object.
Run It Now!
64
2505 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!
75
2285 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!