Class Sana

java.lang.Object
  extended by Sana

public class Sana
extends java.lang.Object

Luokka, joka laskee yhden sanan esiintymiskertoja

Version:
1.0, 11.03.2003
Author:
Vesa Lappalainen

Field Summary
private  int lkm
           
private  java.lang.String teksti
           
 
Constructor Summary
Sana(java.lang.String teksti)
           
 
Method Summary
 int lisaa()
           
static void main(java.lang.String[] args)
           
 boolean oletko(java.lang.String sana)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

teksti

private java.lang.String teksti

lkm

private int lkm
Constructor Detail

Sana

public Sana(java.lang.String teksti)
Method Detail

lisaa

public int lisaa()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

oletko

public boolean oletko(java.lang.String sana)

main

public static void main(java.lang.String[] args)