From: Diez B. R. <de...@we...> - 2003-07-27 11:52:00
|
=2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, > I want to get access to fields(in the example the String 'inm'), > which are located in methods! > How I have to manage it? > example: > > class YourClass{ > > public void test(){ > String inm =3D "inMethod"; > System.out.println("method test()); > } > > } Thats not possible. The variable inm only exists while the method test is=20 excuted - so you can't access from the outside. Diez =09 =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/I7zTBUNnEs5xWG4RAmF9AJoCn3GW/bP4WgHC8iS9+uelIkoyHACfRZVj r6Tlas34PiVJPH5302e3B20=3D =3D6Hit =2D----END PGP SIGNATURE----- |