Class Taulukko

java.lang.Object
  extended by Taulukko

public class Taulukko
extends Object

Esimerkki dynaamisesta taulukosta

Version:
1.0, 02.03.2002
Author:
Vesa Lappalainen

Nested Class Summary
 class Taulukko.TaulukkoTaysiException
           
 
Constructor Summary
Taulukko()
           
Taulukko(int koko)
           
 
Method Summary
 int get(int i)
           
 void lisaa(int i)
           
static void main(String[] args)
           
 void set(int i, int luku)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Taulukko

public Taulukko()

Taulukko

public Taulukko(int koko)
Method Detail

lisaa

public void lisaa(int i)
           throws Taulukko.TaulukkoTaysiException
Throws:
Taulukko.TaulukkoTaysiException

toString

public String toString()
Overrides:
toString in class Object

set

public void set(int i,
                int luku)
         throws IndexOutOfBoundsException
Throws:
IndexOutOfBoundsException

get

public int get(int i)
        throws IndexOutOfBoundsException
Throws:
IndexOutOfBoundsException

main

public static void main(String[] args)