i'm working with a class (class a) that has code with constructors and methods (code x). these same constructors and methods are in another class (class b). i was told to invoke class b so that class invokes class b instead of running code x.
my cobol days taught me how to call one program from another program. i'm not sure of the syntax to invoke one class from another class.
Here, "System.out" is a static member variable -- an instance of class java.io.PrintStream -- and "println" is a method in that class.
So all you need is an instance of the other class, and then you can call its methods. I don't know the details of your specific classes, of course, but generally, this might look something like (in class "a"):