I've the following ternary expression:
((!f.exists()) ? (f.createNewFile() ? printFile() : throw new Exception("Error in creating file")) : printFile());
For one, or more, reason that I don't know idea IDE say to me that it isn't a statement. Why?