title: Java - If condition to check if an Integer array-list contains element which is greater than particular value
body: <p>I have updated my code. I have 3 arraylists and based on the condition I want to update values. I am using for each loop to iterate but now I am doing something wrong with the break it is not resetting/picking up next value for type and len. It is only resetting name.</p>
  
  <pre><code> List &lt;String&gt; columnNameList = new ArrayList &lt;String&gt;();
      List &lt;String&gt; columnTypeList = new ArrayList &lt;String&gt;();
      List &lt;Integer&gt; columnLengthList = new ArrayList &lt;Integer&gt;();
      String result = "";
  
                      columnNameList.add("Id");
                      columnNameList.add("Name");
                      columnNameList.add("Address");
  
                      columnTypeList.add("char");
                      columnTypeList.add("varchar");
                      columnTypeList.add("varchar");
  
  
                      columnLengthList.add(18);
                      columnLengthList.add(50);
                      columnLengthList.add(10000);
  
  
  
  
                      outermostloop: for (String name : columnNameList )
                      { 
                          outerloop:  for (String type : columnTypeList)
                          {
                              loop: for (int len : columnLengthList)
                              {
  
                                  if(len &gt; 0 &amp;&amp; (!type.equalsIgnoreCase("int") &amp;&amp; !type.equalsIgnoreCase("datetime") &amp;&amp; !type.equalsIgnoreCase("datetime2")))
                                          {
  
                                      if(len &gt; 8000 &amp;&amp; !(name.equalsIgnoreCase("Id")) &amp;&amp; (type.equalsIgnoreCase("varchar")))
                                      {
                                          result =  name + type + "(max) ";
                                          System.out.println("if len &gt; 8000 &amp;&amp; name not id and type is varchar " + result);  
                                          // O/P expected : Address  varchar(max)
                                      }
  
                                      else
                                      {
                                          String finalres = name + type + "("+ len +") ";
                                          System.out.println("No conversion " + finalres);    
                                          /* O/P expected : Id char(18)
                                                           Name varchar(50) 
                                           */
  
                                      }
  
                                          }
  
                                  break outerloop;
  
  
                              } 
  
                          }  
  
                      }
  
  But what I am getting with above logic :
  No conversion Id char (18) 
  No conversion Name char (18) 
  No conversion Address char (18)
  </code></pre>