3 Replies Latest reply on Sep 29, 2006 6:58 AM by 807598

    static class variable doesn't store ?

    807598
      Hi,
      I'm a beginner in java.

      I defined a static class variable (nodes) in th following code :
      public class MySOMapp extends javax.swing.JFrame {
      
           private static final long serialVersionUID = 1L;
           private static SOMTrainer trainer;
           private static SOMLattice lattice;
           private static SOMNode nodes; 
           private static Hashtable nwordf;  
      
           public MySOMapp(String args[]) {
                
                SOMNode nodes = new SOMNode();          //.....
      But a method of this class, nodes comes null. methos definition :
      private void makesame() {
      I don't understand why the nodes is null in makesame method which is in the same class with nodes ?
      thanks,
      Yigit