|
Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006
# Can be used in one category to another category of Public variables!
Give one small example :
Test00 located in the same package with Test0
Test00 :
Import javax.swing.*;
Public class (JFrame extends Test00
Test0 test0;
Public Test00 () (
Test0 test0 = new ();
//test0.i
JOptionPane.showMessageDialog (null.
String.valueOf (test0.i)); [color=red]------->; why not here i values [/color]
}
Public static void mian () (
Test00 test00 = new Test00 ();
Test00.setSize (200, 300);
Test00.show ();
Test00.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
}
}
Test0 :
Public class (Test0
Public int i;
Public Test0 () (
I = 1;
}
}
Gloomy! Expert guidance! Em14 : : |
# Can be used in one category to another category of Public variables!
Have Exception? This procedure is very good in the operation of the machine. |
# Can be used in one category to another category of Public variables!
I could not do in the loom above ah! Is the Japanese version of the sdk
Do not know what kind of abnormal! Gloomy try |
# Can be used in one category to another category of Public variables!
Sakulagi :
I was able to conduct this operation : test0.i= test0.i +163;? |
# Can be used in one category to another category of Public variables!
Public static void mian ()
This should :
Public static void main (String[] args[]) |
| |