Thank you so much! Giving it a integer parameter does work
System.out.println("File name is " + filePath.getName(0));
another errors that might be related to nio class
import...
Type: Posts; User: jnewb
Thank you so much! Giving it a integer parameter does work
System.out.println("File name is " + filePath.getName(0));
another errors that might be related to nio class
import...
Hello, I am learning some basic file operations in Java and running into a strange error. Code in my Java textbook is shown below:
import java.nio.file.*;
public class PathDemo
{
public...