Java custom library export and import with eclipse
<p>I want to create my own library with some custom methods that will return different strings for encryption and decryption. I know how to export a specific class with eclipse, but after I import the jar file I don't know how to call those methods.</p>

<pre><code>package com.chriss.cipher;

public class MyLibrary {
    private static final String MSG_1 = "&lt;My awesome 1 MESSAGE&gt;";

    public String generateString(int val){
        return val+" --&gt; "+MSG_1;
    }

    protected String testingString(int value){
        return value + " &lt;this is awesome&gt; !";
    }

    private String testMyString(int value){
        return "---&gt; " + value;
    }
}
</code></pre>

<p>A custom made library it should be abstract?</p>

<p>Why people said that my methods should be protected and don't expose anything that I wouldn't want in public. Is this some security risk? Security from what?</p>
