Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132937 views
License: OTHER
1
public class IataCode {
2
public static void printIATACodes(String[] myArray) {
3
for (int i = 0; i < myArray.length; i++) {
4
System.out.println(myArray[i]);
5
}
6
}
7
8
public static void main(String[] args) {
9
String[] iataCodes = new String[4];
10
// Flughafen München
11
iataCodes[0] = "MUC";
12
// Flughafen Berlin Brandenburg
13
iataCodes[1] = "BER";
14
// Flughafen Augsburg
15
iataCodes[2] = "AGB";
16
printIATACodes(iataCodes);
17
}
18
}
19
20