|
Is there an easier way to access method variables in another method other
than passing them on the call? here's an example:
public static void main(String args[]) {
DB2400 nal820 = new DB2400("nal820");
getData(nal820);
nal820.disconnect();
}
public static void getData(DB2400 nal820) {
//process data
}
could I do something in the getData method to access my "nal820" variable
without passing it? I'm sure it's something really easy and basic, but
like the subject says, it's a "new to Java" type of question...Thanks...
Shane Cessna
iSeries Programmer
iSeries WAS Administrator
North American Lighting, Inc.
(618) 662-4483 x2776
shane_cessna@xxxxxxx
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.