title: How to create/use/import a custom made Method on Java
body: <p>Like the in-built Math class, there are a couple of methods that one can use without importing the Math class. e.g</p>
  
  <pre><code> int io = (int) Math.random();
  </code></pre>
  
  <p>and notice the import region: no MATH whatsoever</p>
  
  <pre><code>import java.awt.Color;
  import java.awt.Graphics;
  import javax.swing.JPanel;
  </code></pre>
  
  <p>but seeing, Math set doesn't have everything i needed, i created mine in a new class, but i can't seem to figure out what to do so i can be able to use it.</p>
  
  <p>Taking a hint from the Math.java file, I've made my class final and my methods static but no avail..</p>
  
  <p>Here's an excerpt of my code</p>
  
  <pre><code>package customops.Sets;
  </code></pre>
  
  <p>/**
   *
   * @author Kbluue
   */</p>
  
  <pre><code>public final class SetOpz {
  
  public SetOpz(){}
  
  public static int setMax(int[] set){
      int out = set[0];
      for(int i=1; i&lt;set.length; i++){
          out = Math.max(out, set[i]);
      }
      return out;
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/uaKxn.jpg" alt="how do i use just the import command without having to copy and paste the SetOpz class in the DTL package? "></p>
  
  <p>how do i use just the import command without having to copy and paste the SetOpz class in the DTL package? </p>