Erro em Classe

Pessoal, qual será o erro nessa classe?

package com.luxfacta.farmaco.utils;
import com.luxfacta.farmaco.vo.ListaMedra;
import com.luxfacta.farmaco.view.ViewNamesTerm;
import com.luxfacta.farmaco.viewarray.ViewNamesTermArray;


public class Generate {

	
	int agrupCount = 0;
	int[] agrup = new int[99];
	private StringBuffer sb = null;
	ListaMedra lm = new ListaMedra();
	

	private void fAgrup(lmAr) {

		 int agrupCountInicial = agrupCount;

		 for (int i = 0; i < lmAr.size(); i++) {

		    if (agrup[agrupCount] == 0)
		      break;

		    ListaMedra lm = (ListaMedra) lmAr.get(i);
		    
		    if (lm.getID_MEDRA() == agrup[agrupCount]) {
		    	agrupCount++;
		  	} 
		    else if (lmAr != null && lmAr.size() > 0) {
		      fAgrup(lmAr);
		    }

		    if (agrupCountInicial < agrupCount) {
		      i = -1;
		      agrupCountInicial = agrupCount;
		    }
		 }
	
	}

	ViewNamesTermArray vntAr = new ViewNamesTermArray();
	
	for (int i = 0; i < vntAr.size(); i++){
		ViewNamesTerm vnt = ((ViewNamesTerm) vntAr.get(i));
		
		lm.setID_MEDRA(vnt.getLLT_CODE());
		lm.setLISTA_MEDRA(vntAr.sort("LLT_CODE"));
		ArrayList lmAr = new ArrayList();
		lmAr = lm.getLISTA_MEDRA();

	                agrup[agrupCount] = lm.getID_MEDRA();
		fAgrup(lmAr);
		
		sb = new StringBuffer();
		 
		createRow(lmAr,sb,ListaMedra);

		return sb.toString();


	}


	
}

Voce esta passando um parametro para o metodo fAgrup mas nao informou de que tipo ele é…

private void fAgrup(lmAr) {   
  
         int agrupCountInicial = agrupCount;   
  
         for (int i = 0; i < lmAr.size(); i++) {   
  
            if (agrup[agrupCount] == 0)   
              break;   
  
            ListaMedra lm = (ListaMedra) lmAr.get(i);   
               
            if (lm.getID_MEDRA() == agrup[agrupCount]) {   
                agrupCount++;   
            }   
            else if (lmAr != null && lmAr.size() > 0) {   
              fAgrup(lmAr);   
            }   
  
            if (agrupCountInicial < agrupCount) {   
              i = -1;   
              agrupCountInicial = agrupCount;   
            }   
         }   
       
    }   

Respondeu em parte minha dúvida, mas já está bom!!

Pq em parte? esse foi o erro encontrado, existe mais algum?

vlw

tem uma chave a mais na linha 40 que está fechando o método antes da hora… tem que adicionar a chave no final no método e não no meio…

Cara só uma pergunta, q IDE vc tah usando??

A propria IDE ia te apontar esses errinhos!!

Att,
Lucas