Advertisement
TheBeastOver9000

A Joke

May 28th, 2015
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.72 KB | None | 0 0
  1. package com.company;
  2. import java.util.Scanner;
  3.  
  4. public class Main {
  5.     private static Scanner sc = new Scanner(System.in);
  6.     public static void main(String[] args) {
  7.         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'};
  8.         for (int i = 0; i < 26; i++) {
  9.             for (int j = 0; j < 26; j++) {
  10.                 //for (int k = 0; k < 26; k++) {
  11.                     System.out.print(alphabet[i]);
  12.                     System.out.print(alphabet[j]);
  13.                     //System.out.print(alphabet[k]);
  14.                     System.out.print(", ");
  15.                 //}
  16.             }
  17.         }
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement