Hi i need help in debuging this error.. How can i pass the variable abbrName into this method? then append fullname into abbreviations[count-1].addFullName(fullname); then call back to constructor? or theres a better way of doing it?
public int getAbbreviationCount(String strLine,int count){
if(abbreviations[count-1].getAbbrName().trim().equals(abbrName.trim()))
{
abbreviations[count-1].addFullName(fullname);
return count-1;
}
return count
}
Code:public class Abbreviation{
private String abbrName, a;
private String[] fullNames, b;
public Abbreviation(String abbrName, String fullName ){
this.abbrName=abbrName;
String[] fullNames= { fullName };
this.fullNames=fullNames;
}

