Skip to content

Instantly share code, notes, and snippets.

@arn-e
Created January 15, 2013 20:22
Show Gist options
  • Save arn-e/4541696 to your computer and use it in GitHub Desktop.
Save arn-e/4541696 to your computer and use it in GitHub Desktop.
unhandled checked exception in Java
import java.io.FileInputStream;
import java.io.File;
public class FileReaderTest {
public static void main(String[] args) {
File newFile = new File("./public/sample_file.text");
FileInputStream fileStream = new FileInputStream(newFile);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment