User-submitted Java Projects

32
1681 reads
Saurabh03's picture

Submitted by

Saurabh03
Array
Union of Two arrays
Array

Run It Now!
70
2542 reads

January 26, 2013

Inheritance and Objects


we are seeing how inheritance works here. we have our base class A which is inherited by the class Example.

24
1413 reads
HitORMissGame
This is a game developed in java.which gives user 5 chances to predict the 3 Randomly generated numbers between 1 and 10. if you predict them you are the winner or else you would lose the game.
Run It Now!
299
2770 reads

January 25, 2013

59
2434 reads

January 24, 2013

Logical operators


Logical operators return a true or false value based on the state of the Variables. There are six logical, or boolean, operators.

36
2376 reads

January 24, 2013

Relational operators


Relational operators in Java are used to compare 2 or more objects. Java provides six relational operators:

41
2405 reads

January 24, 2013

Arithmetic operators


Java provides eight Arithmetic operators. They are for addition, subtraction, multiplication, division, modulo (or remainder), increment (or add 1), decrement (or subtract 1), and negation.

36
2454 reads

January 24, 2013

Assignment operators


The java assignment operator statement has the following syntax:

=

If the value already exists in the variable it is overwritten by the assignment operator (=).

40
2338 reads

January 24, 2013

Nested classes


A class created in the body of another class is said to be a nested class.

276
1387 reads

January 24, 2013