Patterns are most important for interview point of view. To understand pattern problem you know only the basic tactic of how to solve pattern problem. In Java, it becomes a little bit easier to code patterns problems.         In this article we discuss 20 basic pattern problem in java.  Java Program: To Check If A Number Is Prime In Java     Lets get start :)       Patterns In Java     1. Left Triangle Star Pattern :     First, let us begin with the basic and the commonly asked pattern  program in  Java  i.e This is the basic pattern in java to write its code . Their is only two loops are used one for row and another for column.         Let’s write the java code:      import java.util.*; public class Main {      public static void main(String[] args) {         Scanner scn = new Scanner(System.in);          // write ur code here         int n = scn.nextInt();         for (int i = 1; i <= n; i++){             for(int j = 1; j <= i; j++){                 System.out.pr...