// import required package file import java.io.File; // The Filedetails class public class FileDetails { // Constructor that performs the action public FileDetails(String filename) { // File object to get details File file=new File(filename); // printing obsolute path System.out.println(\"Absolute path of file:\"+file.getAbsolutePath()); // printing file size in bytes System.out.println(\"File Size in bytes:\"+file.length()); // Checking if file is readable if(file.canRead()) System.out.println(\"The file is readable\"); else System.out.println(\"The file is not readable\"); // checking if file is writable if(file.canWrite()) System.out.println(\"The file is writable\"); else System.out.println(\"The file is not writable\"); } // main method goes here public static void main(String[] args) { // TODO Auto-generated method stub // object instantiation FileDetails fd=new FileDetails(\"anyfile.doc\"); // You should give exact path and file name here } } // Importing required packages import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.PrintStream; // the writestring class public class WriteString { // Writestring class public WriteString(String filename,String text) throws FileNotFoundException { // File object File file=new File(filename); // Printsteam class that connects file using file output stream PrintStream ps=new PrintStream(new FileOutputStream(file)); // using println method to write to the file ps.println(text); } // main method to execute the code public static void main(String[] args) throws FileNotFoundException { // the writestring class instantiation WriteString ws=new WriteString(\"f1.txt\",\"Hello World\"); // You should give exact path and file name here } } // importing packages import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.PrintStream; // The writints class public class WriteInts { // the constructor to instantiate public WriteInts(String filename,int[] myArr) throws FileNotFoundException { // File object File file=new File(filename); // Using print stream to write integers PrintStream ps=new PrintStream(new FileOutputStream(file)); //Looping through array elements to write every element for(int i=0;i Solution // import required package file import java.io.File; // The Filedetails class public class FileDetails { // Constructor that performs the action public FileDetails(String filename) { // File object to get details File file=new File(filename); // printing obsolute path System.out.println(\"Absolute path of file:\"+file.getAbsolutePath()); // printing file size in bytes System.out.println(\"File Size in bytes:\"+file.length()); // Checking if file is readable if(file.canRead()) System.out.println(\"The file is readable\"); else System.out.println(\"The file is not readable\"); // checking if file is writable if(file.canWrite()) System.out.println(\"The file is writable\"); else System.out.println(\"The file.