January 2018
Intermediate to advanced
434 pages
14h 1m
English
Let's take the following steps to understand the use function of Kotlin:
private static void printFile() throws IOException {
InputStream input = null;
try {
input = new FileInputStream("sampleFile.txt");
// Some operation using input object
} finally {
if(input != null){
input.close(); // closing the resource
}
}
}
Read now
Unlock full access