if(Integer.parseInt(n)==(m[i].age))
{
m[i].showdetails();
}
I am getting number format exception in if condition In this code n is an string and m[i].age is an integer and I want to compare them
thank you:)any help would be appreciated.