I have declared the following values as int and double but my problem is that I�ve created an array which returns a
string which means since Prefnum is declared as an int then it will have to be converted to a string, now do I used String.valueOf or toString to convert so I can print out these values as strings? The error that i'm getting when using either one of the two is incompatible data type.
thanks
int Prefnum=0;
int Arefnum=0;
int Pserial=0;
double Pvalue=0;
try {
String[] proceedingsList=crime.getProceedingsDetails(conn,referenceNumber);
// Prefnum=String.valueOf(proceedingsList[0]);
// Prefnum=(proceedingsList[0]).toString();
Prefnum=proceedingsList[0]);
if(proceedingsList[0]==null){
Prefnum="";
}else{
Prefnum=(proceedingsList[0]);
}
Ptype=proceedingsList[1];
if(proceedingsList[1]==null){
Ptype="";
}else{
Ptype=proceedingsList[1];
}
Pserial=proceedingsList[2];
if(proceedingsList[2]==null){
Pserial="";
}else{
Pserial=proceedingsList[2];
}