tubeshowcase●1,194,391 videos♡ My collection 0
← Learn to Code

Learn to Code07:20

Java File class 📁

Bro Code ↗

From the creator

Java File class tutorial example #Java #File #class #tutorial #example import java.io.File; public class Main { public static void main(String[] args) { // file = An abstract representation of file and directory pathnames File file = new File("secret_message.txt"); if(file.exists()) { System.out.println("That file exists! :O!"); System.out.println(file.getPath()); System.out.println(file.getAbsolutePath()); System.out.println(file.isFile()); file.delete(); } else { System.out.println("That file doesn't exist :("); } } }

Published 2020-10-06 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code