title: Java check if file size is larger than 0
body: <p>Hi i'm trying to create an if statement that checks the size of a file here's what i have although it's not working.</p>
  
  <pre><code>File file = new File("/path/to/file.zip");
  long fileSize = file.length();
  if (!(fileSize &gt; 0));{
  Toast.makeText(MainMethod.this, "Equal to 0", Toast.LENGTH_LONG).show();
  } else {
  Toast.makeText(MainMethod.this, "Greater than 0", Toast.LENGTH_LONG).show();
  }
  </code></pre>