Class PrinterRunnable

java.lang.Object
  extended by PrinterRunnable
All Implemented Interfaces:
java.lang.Runnable

public class PrinterRunnable
extends java.lang.Object
implements java.lang.Runnable

Nebenläufiger Druck einer Zahl, als Runnable.


Field Summary
private  int n
          Druckzahl.
 
Constructor Summary
PrinterRunnable(int n)
          Konstruktor, setzt Druckzahl.
 
Method Summary
static void main(java.lang.String[] args)
          Test.
 void run()
          Druckt Zahl 40x, mit Druckunterbrechung.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

n

private int n
Druckzahl.

Constructor Detail

PrinterRunnable

public PrinterRunnable(int n)
Konstruktor, setzt Druckzahl.

Parameters:
n - Druckzahl
Method Detail

run

public void run()
Druckt Zahl 40x, mit Druckunterbrechung.

Specified by:
run in interface java.lang.Runnable

main

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