title: How to import stddraw correctly?
body: <p>Editor: IntelliJ CE</p>
  
  <p>What I want: Be able to write </p>
  
  <pre><code>setCanvas(500,500);
  </code></pre>
  
  <p>Instead of</p>
  
  <pre><code>StdDraw.setcanvas(500,500);
  </code></pre>
  
  <p>Problem: I can't figure out how to correctly import the Stddraw library. 
  If i simply do</p>
  
  <pre><code>import StdDraw;
  </code></pre>
  
  <p>IntelliJ tells me "StdDraw" symbol cannot be resolved.
  If I comment it out I can call methods from StdDraw but I have to write
      StdDraw.setcanvas(500,500);</p>
  
  <p>StdDraw.java is in the same directory as Solver.java.</p>
  
  <p>Code:</p>
  
  <pre><code>    import java.io.File;
      import java.io.FileNotFoundException;
      import java.util.ArrayList;
      import java.util.Scanner;
  //    import StdDraw;//StdDraw is in the same directory as Solver
  
  public class Solver {
  
      public static void main(String[] args) {
          System.out.println("Solver main is running.");
  
          StdDraw.setCanvasSize(500, 500);
          StdDraw.setPenColor(StdDraw.RED);
          StdDraw.filledRectangle(0,0,10,10);
       }
  }
  </code></pre>
  
  <p>I've already tried:
  - Making sure Stddraw.java is in the same directory as the file I'm compiling and running
  - Looking at <a href="http://introcs.cs.princeton.edu/java/stdlib/javadoc/StdDraw.html" rel="nofollow">http://introcs.cs.princeton.edu/java/stdlib/javadoc/StdDraw.html</a>
  - Searching for COMPLETE code examples, ie. code that shows how to import the library
  - Searching YouTube tutorials
  - Reading <a href="https://www.jetbrains.com/idea/help/library.html" rel="nofollow">https://www.jetbrains.com/idea/help/library.html</a>
  - Fiddling around with adding stuff in front of StdDraw, eg. stblib.StdDraw</p>