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
import UIKit | |
class ViewController: UIViewController, UITableViewDataSource, NewtodoViewControllerDelegate { | |
@IBOutlet weak var tableView: UITableView! | |
var todos: [String] = ["Login umsetzen", "Debugging"] { | |
didSet { | |
self.tableView.reloadData() | |
} | |
} |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Grundlagen der Programmierung - Datentypen</title> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
// 1. Variablen deklarieren und initialisieren | |
var integerWert = 20; |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Grundlagen der Programmierung - Datentypen</title> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
// 1. Variablen deklarieren und initialisieren | |
var integerWert = 20; |
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
xxxxxxxxxx | |
xxxxxxxxxx | |
xxxxxxxxxx | |
xxxxxxxxxx | |
xxxxxxxxxx | |
xxxxxxxxxx |
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
// schleifen in schleifen | |
int zeilen = 6; | |
int spalten = 10; | |
for ( int i = 0; i < zeilen; i++ ) { | |
for ( int j = 0; j < spalten; j++ ) { | |
System.out.print("x"); | |
} | |
System.out.println(); |
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
for (int j = farben.length - 1; j >= 0; j-- ) { | |
System.out.println(farben[j]); | |
} |
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
// (schleifenzaehler; bedingung; inkrement) | |
for (int i = 0; i < farben.length; i++) { | |
System.out.println(farben[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
var i = 1; | |
while (i <= 5) { | |
document.write(i); | |
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
for ( var i = 1; i <= 5; i++ ) { | |
document.write(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
// Basisvergleich | |
var alter = 18; | |
if (alter < 18) { | |
document.write("Noch nicht volljährig, unter 18!<br>"); | |
} else { | |
document.write("Volljährig! 18 oder älter!<br>"); | |
} |