Methods to be called depending on non null value
I am calling a classcreateTestFile. Depending on the value of the variable fetched, I want to call either the methodscreateFile1 orcreateFile2.
That is
1. If the value fetched for the variablefamily is null, then the program control should go tomte.createFile2(code); and
2. If the value fetched for the variablecode is null, then the program control should go tomte.createFile1(family);
My code is
createTestFile mte=new createTestFile();
try
{
mte.createFile1(family);
mte.createFile2(code);
}
catch (IOException ex)
{
ex.printStackTrace();
}
Could anyone please help me what updations to make in my code. At present I am not able to do so.

