Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.company;
- import java.util.Scanner;
- public class Main {
- private static Scanner sc = new Scanner(System.in);
- public static void main(String[] args) {
- char[] alphabet = new char[]{'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};
- for (int i = 0; i < 26; i++) {
- for (int j = 0; j < 26; j++) {
- //for (int k = 0; k < 26; k++) {
- System.out.print(alphabet[i]);
- System.out.print(alphabet[j]);
- //System.out.print(alphabet[k]);
- System.out.print(", ");
- //}
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement