I have a problem with method which should use a code, search the table for the code, and then return me data with that code index; This is what I use now. The Eclipse is telling me that result may not be initialised. But I don't see another way to do this.
public String getService(String serviceCode){
    String result;
    for(int i=0;i<data.length;i++){
        for(int j=0;j<3;j++){
            if(serviceCode==data[i][j]){
                result =  data[i][j+1].toString() + data[i][j+2].toString();
            }
        }
    }
    return result;
}
 
     
     
     
    