When you start a library the Eclipse Library template provide a class. let's call it Class1.
If I crate two more classes (classA and classB) and I want to instantiate ClassB into class1 works ok. But If I need to instantiate ClassB into ClassA I got an error: ClassB cannot be resolved to a type.
code example:
public class ClassA{
PApplet parent;
public ClassA(PApplet myParent)
{
parent = myParent;
}
public void Foo()
{
ClassB cb = new ClassB(); //error -> cannot be resolved to a type.
In Java I want to manage and play with objects created in processing. for example unsort an array of objects. since I don't know which type of object can be created in processing.
So how can I convert an specific class (later and object) in processing to the generic object in Java?
I'm passing an array(char[][]) into a method. I'm using the arraycopy() to make a copy of the array and avoid modify the array outside of the class. but I can't get it.
please any help will be amazing.
thanks in advance
C.
public char[][] GenrMutation(char[][] pop, float ChroPercent)
{
SelectChromosomes(pop);
int chroCant = (int)(pop[0].length * ChroPercent);
I'm working in a processing library in eclipse, and I would like to know the best practice to debug that library into eclipse. I have been trying to create a main class in eclipse and call the other class from there. but is not so practice. because you have to delete the class in order to compile the library.