This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[int]$z=0 | |
$out="" | |
while ($z -le 0) { | |
$z=Read-Host "Dezimalzahl:" | |
} | |
$dezimal=$z | |
while ($z -gt 0) { | |
$diff=$z%8 | |
$out=$out.Insert(0,$diff) | |
$z=($z-$diff)/8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Client implements Observer{ | |
private String name; | |
private String pw; | |
public Client(String user,String pw) { | |
this.name=user; | |
this.pw=pw; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Main { | |
/** | |
* @param args | |
*/ | |
public static void main(String[] args) { | |
// TODO Auto-generated method stub | |
Client c1 = new Client("Thomas","mmbbs"); | |
Client c2= new Client("Frank","mbs"); | |
Client c3= new Client("Simone","mmbbs"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Main { | |
/** | |
* @param args | |
*/ | |
public static void main(String[] args) { | |
// TODO Auto-generated method stub | |
Zaehler z1 = new Zaehler("Nummer 1", 3); | |
Zaehler z2 = new Zaehler("Nummer 2", 6); | |
z1.start(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Write-Host "Zählen startet" | |
$z1 = Start-Job { | |
for ($i=0;$i -lt 3;$i++) { | |
"Zaehler 1 ist bei $i" | |
sleep 1 | |
} | |
} | |
$z2 = Start-Job { | |
for ($i=0;$i -lt 6;$i++) { | |
"Zaehler 2 ist bei $i" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Fahrzeug { | |
private double gewicht; | |
private long laufleistung; | |
public double getGewicht() { | |
return gewicht; | |
} | |
public void setGewicht(double gewicht) { | |
this.gewicht = gewicht; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Fahrzeug { | |
private double gewicht; | |
private long laufleistung; | |
public double getGewicht() { | |
return gewicht; | |
} | |
public void setGewicht(double gewicht) { | |
this.gewicht = gewicht; | |
} | |
public long getLaufleistung() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ObjTraining { | |
public ObjTraining() { | |
Fahrzeug fa1 = new Fahrzeug(); | |
Fahrzeug fa2 = new Fahrzeug(); | |
fa1.setGewicht(15.0); | |
fa2.setGewicht(20.0); | |
fa1.drive(300); | |
fa2.drive(2, 30); | |
fa1.drive(1,55); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Fahrzeug { | |
private double gewicht; | |
private long laufleistung; | |
public Fahrzeug (double gewicht) { | |
this.gewicht=gewicht; | |
} | |
public Fahrzeug (double gewicht, long laufleistung) { | |
this.gewicht=gewicht; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Fahrzeug { | |
private double gewicht; | |
private long laufleistung; | |
public Fahrzeug (double gewicht) { | |
this.gewicht=gewicht; | |
} | |
public Fahrzeug (double gewicht, long laufleistung) { | |
this.gewicht=gewicht; |