Spielwiese: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| Zeile 22: | Zeile 22: | ||
|} | |} | ||
{|style="border-style: solid; border-width: 1px 0px 1px 1px; margin: 5px" | |||
| Hello<br>test | |||
{|style="border-style: solid; border-width: 1px 0px 1px 1px; margin: 5px" | |||
| Helle 2 | |||
|} | |||
|} | |||
{| class="wikitable" | |||
! Programmbeschreibung !! Java Quelltext | |||
|- | |||
| | |||
Methode zwanzigerLinieLegen() | |||
{|style="border-style: solid; border-width: 1px 0px 1px 1px; margin: 5px" | |||
| Wiederhole 20-mal | |||
{|style="border-style: solid; border-width: 1px 0px 1px 1px; margin: 5px" | |||
| lege ein Blatt<br/>gehe einen Schritt | |||
|} | |||
|} | |||
|| | |||
public void zwanzigerLinieLegen() | |||
{ | |||
'''for(int i=0; i<20; i++) | |||
{ | |||
kara.putLeaf(); | |||
kara.move(); | |||
} | |||
} | |||
|} | |||
= Quelltext = | = Quelltext = | ||
Version vom 2. Januar 2016, 22:45 Uhr
Willkommen auf der SIBI-Wiki Spielwiese!
- Hier kann jeder mal ausprobieren, wie das Ganze funktioniert.
- Dafür lohnt sich das SIBI-wiki-cheat-sheet!
- Runterladen, Ausdrucken und neben den Computer legen!
Zurück zur Hauptseite
Math
[math]\displaystyle{ y=x+2 }[/math]
Tabellen
| Überschrift1 | Überschrift2 |
|---|---|
| Zelle11 | Zelle12 |
| Zelle21 | Zelle22 |
| Hello test
|
| Programmbeschreibung | Java Quelltext | ||
|---|---|---|---|
Methode zwanzigerLinieLegen()
|
public void zwanzigerLinieLegen()
{
for(int i=0; i<20; i++)
{
kara.putLeaf();
kara.move();
}
}
|
Quelltext
public static void main(String[] args){
System.out. println("Hello");
}