title: (Java) - how to display the output we set
body: <p>This is the java code, how can i display like example:</p>
  
  <pre><code>public static void main(String[] args) {
      // TODO code application logic here
      int i = 1;
      int j = 1;
  
  
     for (i = 1 ; i &lt;= 10; i++)
     {
         for (j = 1; j&lt;= 5; j++)
         {
          if (i % 2 == 0 )
          {
              System.out.println ( j + "/5 = " + i /10.0);
              //the output should be 
              // 1/5 = 0.2
              // 2/5 = 0.4
              // 3/5 = 0.6
              // 4/5 = 0.8
              // 5/5 = 1.0
  
          }
         }
  
     }
  
      System.out.println("--------------------");
     }
  
   }
  </code></pre>
  
  <p>How i can display the output like 1/5 = 0.2  2/5 = 0.4  3/5 = 0.6  4/5 = 0.8  5/5 = 1.0</p>