I am compiling a file which makes a call to my getPdbFile
method in my utils
class. I receive the following error:
*method getPdbFile in class utils cannot be applied to given types;
utils.toFileNoApp(new java.io.File(preInDir,aId+".pdb"),utils.getPdbFile(aPdbId,aChain));
^
required: String
found: String,String
reason: actual and formal argument lists differ in length*
However, in my utils class, I have two versions of the getPdbFile
method, one of which takes two Strings as arguments. Can someone help me understand why I still get this error? The methods are:
public static String getPdbFile(String pdbId) throws Exception{
...
}
public static String getPdbFile(String pdbId,String chainId) throws Exception{
...
}
I have searched through a few other posts that give very similar error messages but the situations I found appear different from my problem.