| Using an Interface to Declare a Variable |
Here is an example of an interface, including a
class that implements it, and creating an object from it. |
| Greatest Common
Divisor |
The greatest common divisor of two positive
integers is the highest number that can divide those two other
numbers. This example shows how to find the greatest
common divisor of two numbers. |
| Rational |
The rational is a number that is
represented by two parts, a numerator and a denominator. Here
is an example of producing a rational. |
| Array
Resizing |
This example shows how you can increase the
number of items in an array if you have to add values beyond the
original size. |
| Linked List |
|
This is an example of a linked list, which is a technique of creating a collection
of items where an item can be located based on another existing item.
|
| IList Implementation |
Here is a class used as an introduction to
collections. It creates a class that implements the IList
interface. It also adds some other features to the class. |
| Array-Based List |
An array-based list is a collection of items where each item can be located
using its index. |
| Cashier
Change |
This application shows how to assist the cashier of a
store figure out how
much change to give to a customer. |
| The Minimum and Maximum Values in an Array |
This series of sample programs shows how to find the
highest number in a series. |
| Finding out Whether a Word or Sentence is a Palindrome |
|
This is an example code of finding out whether a word or sentence is a
palindrome, which is a word or a sentence that reads the same way from left to right or from right to
left. |
|
Fibonacci Number |