Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Colours {
- public static void main(String[] args) {
- String[] a = {"white", "black", "green", "brown", "yellow", "blue", "red"};
- for (int i = 0; i < a.length; ++i) {
- System.out.print(a[i] + " ");
- if (i % 3 == 2)
- System.out.println();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement