Uncategorized Print Only Alphabets In Java - $% here is an explanation of the regex patterns used above. You can see that our program has nicely printed the pattern of alphabets in both upper and lowercase depending upon user input.