Class Sana
java.lang.Object
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 |
teksti
private java.lang.String teksti
lkm
private int lkm
Sana
public Sana(java.lang.String teksti)
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)