mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-26 06:48:04 +02:00
added source code examples
This commit is contained in:
parent
9e7aaedd53
commit
3e1dba9d8b
6 changed files with 112 additions and 0 deletions
18
documents/source-code-listings/IataCode.java
Normal file
18
documents/source-code-listings/IataCode.java
Normal file
|
@ -0,0 +1,18 @@
|
|||
public class IataCode {
|
||||
public static void printIATACodes(String[] myArray) {
|
||||
for (int i = 0; i < myArray.length; i++) {
|
||||
System.out.println(myArray[i]);
|
||||
}
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
String[] iataCodes = new String[4];
|
||||
// Flughafen Munchen
|
||||
iataCodes[0] = "MUC";
|
||||
// Flughafen Berlin Brandenburg
|
||||
iataCodes[1] = "BER";
|
||||
// Flughafen Augsburg
|
||||
iataCodes[2] = "AGB";
|
||||
printIATACodes(iataCodes);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue