Trying to populate the Trans[] array with the methods in my transistor database (TransDBEE) and am getting the error as described in the title. Any suggestions would be much appreciated
Class 1
package TransistorBiasing;
import javax.swing.JList; //creates a list box for your JFrame
import TransistorBiasing.TransDBEE;
public class UseDB extends JFrame
{
private JList TransJList;
private final String TransNames[]={ "TIP120"};//an array of strings
private final TransDBEE Trans[]={TransDBEE.tip120()}; //HERE IS THE ISSUE LINE
public static void main( String args[])
{
}
}
Class 2
package TransistorBiasing;
class TransDBEE
{
public static int hfe;
public static int VBE;
public static int Icmax;
//static void tip120(int hfe, int Icmax, int VBE)
//static int tip120(hfe, Icmax, VBE)
static void tip120()
{
hfe=1000;
Icmax=5;
VBE=3;
}
}