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 += 3) {
4
System.out.println(myArray[i]);
5
}
6
}
7
8
public static void main(String[] args) {
9
String[] iataCodes = { "MUC", "BER", "AGB", "ABC", "DEF",
10
"GIH", "JKL", "MNO", "PQR", "STU", "VWX", "YZ" };
11
printIATACodes(iataCodes);
12
}
13
}
14
15