
I have created a class, which contains 3 parameters; "l", "es1", "es2"
public T(float l, float es1, float es2) {
}
I would then like to create a method, which returns me the index of a specific object (in the example (1,39,0) from the class T, but I canÃ?¢ââ??‰â??¢t succeed. My guess is;
public int index()
{
ArrayList<T> ts = new ArrayList<T>();
for(int i=0; i It returns "-1" indication that the object doesn't exist, even though xmax=20, m1=50, m2=0
(it is compiling... )
Any solution? return ts.indexOf(new T(1,39,0));
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.