Bon alors voilà je suis en plein combat contre la redondance et je ne comprend pas l'erreur ici:
Je fais un tableau de variable pour permettre de passer à mes déclaration de listes une par une à la boucle for juste en-dessous.
Mais le soucis c'est que tabVarList[i] est souligné et me donne l'erreur que j'ai spécifié dans le titre "Illegal modifier for the variable tabVarList; only final is permitted"

Je ne comprend pas trop, j'ai retiré le type d'accès dans ma déclaration de tableau mais ça ne changer rien.

Merdi d'avance pour votre réponse

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 
public class VarDeclaration extends Fragment {
 
	final String tabVarList[] = {"mDataAll","mDataQuot, mDataHebd, mDataMens, mDataTrim, mDataAnn"};
 
	/**===============================================
        Création des list de donnée pour chaque listView
        ===============================================**/ 
	public List<String> mDataAll = new ArrayList<String>();
	public List<String> mDataQuot = new ArrayList<String>();
	public List<String> mDataHebd = new ArrayList<String>();
	public List<String> mDataMens = new ArrayList<String>();
	public List<String> mDataTrim = new ArrayList<String>();
	public List<String> mDataAnn = new ArrayList<String>();
 
	public void tabDeclaration(){
		for(int i=0; i==tabVarList.length;i++){
			public List<String> tabVarList[i]; = new ArrayList<String>();
		}
	}