User-submitted Java Projects

40
2226 reads

February 7, 2013

Winning Strategy for Roullete


Eine "foolproof" winning strategy in roulette is to always bet
on the same color. If you loose then you simply double your wager for
compensating the loss.

32
615 reads
mahafeshawey's picture

Submitted by

mahafeshawey
Tags:

sortingAnArray
it sorts a given unsorted array
Run It Now!
28
227 reads

February 7, 2013

Data types in java


This program demonstrates the use of different data types in java.

39
268 reads

February 7, 2013

Float and Double


This program demonstrates the use of float variables and double variables and also difference between them. The range of double is much greater than float.

36
2504 reads

February 7, 2013

Using int


The below example demonstrates how to how to assign values of int data-type to a variable. The below example prints the value of first,second and third variable.

68
2323 reads

February 6, 2013

multitype arguments


Demonstrates an example of a method which takes multiple types of arguments.

46
2426 reads

February 6, 2013

void Methods


This example demonstrates how we can return void or take in void or both in methods.

77
2592 reads

February 6, 2013

area Method example


This example demonstrates a area method implemented with functions. It takes 2 arguments, height and width and returns the area.

49
2374 reads

February 6, 2013

Calculating Square and Cube


The below program demonstrates the calculation of square and cube.

27
2280 reads

February 6, 2013

Passing the Value


The program below demonstrates the use of getters and setters in passing the values.