samedi 20 juin 2015

Complex if clause imbrication

While I was looking for code snippets online, I came across this weird code

  if(filename!=null)
  if(filename.exists())
  saveFile(filename);
  else
  quit();

How is it possible? Why can this code compile ? Please, can you explain it to me.

Aucun commentaire:

Enregistrer un commentaire