Assume that you are a member of the programming committee for implementing a method to print the new EU flag, which was decided on by the EU-commission after years of fighting, for when the new countries have joined. The surprising decision is given below:
The method
public char determineCharacter (int column, int row);
needs implementation, so that it can be called from the nested loop
String outputLine;for (int row = 1; row <= 40; row++){ outputLine = "";
for (int column = 1; column <= 40; column++){
outputLine = outputLine+determineCharacter (column, row);
} System.out.println (outputLine);
}
Last change:: |