title: Finding Max with Lambda Expression in Java
body: <p>This is my code</p>
  
  <pre><code>    List&lt;Integer&gt; ints = Stream.of(1,2,4,3,5).collect(Collectors.toList());
      Integer maxInt = ints.stream()
                                .max(Comparator.comparing(i -&gt; i))
                                .get();
  
      System.out.println("Maximum number in the set is " + maxInt);
  </code></pre>
  
  <p>output:</p>
  
  <pre><code>Maximum number in the set is 5
  </code></pre>
  
  <p>I cannot make distingues between two <code>i</code> in below section of my code</p>
  
  <pre><code>Comparator.comparing(i -&gt; i)
  </code></pre>
  
  <p>can anyone be kind and explain the difference between two <code>i</code>?</p>