java - Class objects not loading -


my class object not loading reason. i've made 3 methods in second class , i'm trying use them in first class, i'm getting exception errors. here's first class:

public class myfish extends panel implements runnable, keylistener {  public static void main(string args[]) {      efish.loadefish(efish.efish); // load efish objects     efish.loadefishthread(efish.efishthread); // load efish threads     efish.startefishthread(efish.efishthread); // start efish threads  } } 

here's second class:

public class efish implements runnable {  static efish efish[] = new efish[20]; static thread efishthread[] = new thread[20];  static void loadefish(efish i[]) {      (int j = 0; j < i.length; j++) {         i[j] = new efish();     } }  static void loadefishthread(thread i[]) {      (int j = 0; j < i.length; j++) {         i[j] = new thread();     } }  static void startefishthread(thread i[]) {      (int j = 0; j < i.length; j++) {         i[j].start();     } } } 

here's exception error:

exception in thread "main" java.lang.error: unresolved compilation problems:  method loadefish(efish[]) undefined type efish efishthread cannot resolved or not field efishthread cannot resolved or not field @ fishy.myfish.main(myfish.java:103) 


Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -