Java

398
4429 reads

February 22, 2013

Construct One String from Another


The example shows one way of defining the value of a String.Character array can be used in the String definition.Value of one String can be used to define the value of another String

57
2812 reads

February 21, 2013

ForLoop


The program below demonstrates the for loop.

44
2637 reads

February 21, 2013

Menu Selection using DoWhile


Using a do-while to process a menu selection -- a simple help system.

72
2559 reads

February 21, 2013

DoWhileLoop


The program below demonstrates the do-while loop.

58
2368 reads

February 21, 2013

WhileLoop EmptyTarget


The target of a loop can be empty.

48
2779 reads

February 21, 2013

While Loop


The program below demonstrates the while loop.

44
2721 reads

February 21, 2013

StringSwitch


The program below demonstrates how to use a string to control a switch statement.

54
2511 reads

February 21, 2013

SwitchCase


This is an example of an season's program using switch-case.

49
2616 reads

February 21, 2013

Switch Example


In a switch, break statements are optional.

59
2857 reads

February 21, 2013

Simple Switch


A simple example of switch.