Untitled

mail@pastecode.io avatar
unknown
java
2 years ago
1.1 kB
1
Indexable
Never
interface ReadWriter {
  public void fileRead(); // interface method (does not have a body)
  public void fileWrite(); // interface method (does not have a body)
}



class Main {
  public static void main(String[] args) {
    
  }
}

class A implements ReadWriter{
    public void fileRead(){
       File file = new File("C:\\Users\\Arya\\Desktop\\input.txt");
       BufferedReader br = new BufferedReader(new FileReader(file));
       //read all special characters from file
    
    }
    public void fileWrite(){

    }
}

class B implements ReadWriter{
    public void fileRead(){
         File file = new File("C:\\Users\\Arya\\Desktop\\input.txt");
         BufferedReader br = new BufferedReader(new FileReader(file));
         
    }
    public void fileWrite(){

    }
}
class C implements ReadWriter{
    public void fileRead(){
         File file = new File("C:\\Users\\Arya\\Desktop\\input.txt");
         BufferedReader br = new BufferedReader(new FileReader(file));
         
    }
    public void fileWrite(){

    }
}