I've been browsing the internet and I couldn't manage to find a solution.
Here is my code :
import java.util.ArrayList;
public class Memoire{
int taille;                             //Size of the memory in bits
boolean flag = true;                    //At "0" if the memory is fully utelized. Else at "1"
ArrayList pid = new ArrayList();        //Use to store the pid
ArrayList size = new ArrayList();       //Use to store the amount of memory allocated for each pid
public void memoire()
{
}
public void memoire(int qTaille)
{
    taille = qTaille;
}
public boolean allouer(int qSize, int qPid,boolean force)//The Process ID (pid) bind the allocated memory to his process
{
    int left = verifMemoire(qSize);                 //Get the remaining memory
    if(left < qSize)                                //If the remaning memory is larger than the request
    {
        pid.add(qPid);                              //Store the pid
        size.add(qSize);                            //Store the size
    }
    else
    {
        if(force)                                   //If the user want to force the allocation 
        {
            pid.add(qPid);                          //Store the pid
            size.add(left);                         //Sotre the remaining memory size
        }
        else
        {
            return false;                           //If the user don't want to force, return an error
        }
    }
    return true;                                    //Return the success of the allocation
}
I still have Eclipse telling me that I need to specify and object to my .add ArrayList ( size.add(qSize); ). Is it really necesseary?
It's not only a compliance error. It's the way a List ist declared
 
     
     
    