title: How to draw a two dimensional graphic at Java?
body: <p>I have 2 different lists. Each of them holds x and y value pairs(they have both positive and negative values). How can I draw them on a 2D axis? I want to put <code>points</code> for every value and they will blue for first list and  red for second list. </p>
  
  <p>My lists' type:</p>
  
  <pre><code>List&lt;List&lt;Double&gt;&gt;
  
  List&lt;Double&gt; inside of List&lt;...&gt; has 2 variables, first of it for x value and the second one is for y value.
  </code></pre>
  
  <p>However just I need to how to draw a two dimensional graphic at Java(desktop application) and put points wherever I want, improving code for my variables is less important.</p>
  
  <p><strong>PS:</strong></p>
  
  <p>I want the <code>more and more simple</code> of that kind of graphic:
  <img src="https://i.stack.imgur.com/1ycRr.jpg" alt="enter image description here"></p>
  
  <p>Something like:</p>
  
  <p><img src="https://i.stack.imgur.com/u4Iq0.jpg" alt="enter image description here"></p>