Cool, okay so say I have one class that's just my UserInterface. Then in that interface I have a actionListener registerd on a button. Now normaly you do that and then you have a method actionEvent/actionPerformed method in the same class that then says what should happen when that button is clicked.
What I want to do, is have this actionEvent/actionPerformed method, in ANOTHER class. Make sense?
Two ways to go:
1. Define the whole ActionListener in the second class but add it in the first
2. Define the ActionListener in the first class in the usual way but in the actionPerformed method just call a method in the second class
I see, I think I'll prefer the first way, in the second way I'm gna end up writing too many method, if I have a method designed only for the purpose of calling another method.
Anyways, thank you so much! This was quite helpfull :-)
Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...
I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...