mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-26 06:48:04 +02:00
13 lines
417 B
Java
13 lines
417 B
Java
public class IataCode {
|
|
public static void printIATACodes(String[] myArray) {
|
|
for (int i = 0; i < myArray.length; i += 3) {
|
|
System.out.println(myArray[i]);
|
|
}
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
String[] iataCodes = { "MUC", "BER", "AGB", "ABC", "DEF",
|
|
"GIH", "JKL", "MNO", "PQR", "STU", "VWX", "YZ" };
|
|
printIATACodes(iataCodes);
|
|
}
|
|
}
|