Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132930 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[myArray.length - i - 1]);
5
}
6
}
7
8
public static void main(String[] args) {
9
String[] iataCodes = new String[4];
10
iataCodes[0] = "MUC";
11
iataCodes[1] = "BER";
12
iataCodes[2] = "AGB";
13
printIATACodes(iataCodes);
14
}
15
}
16
17