Java: illegal start of type error in try-catch-interface, why?
- by HH
The number of braces equals. What is the error for?
static interface userInfo
{
File startingFile=new File(".");
String startingPath="dummy";
try{
startingPath=startingFile.getCanonicalPath();
}catch(Exception e){e.printStackTrace();}
}
Error
illegal start of type