import java.io.*;
import java.util.*;
interface animal{
    void bark();
}
interface reptile{
    void bark();
}
public class Interface implements animal, reptile {  //Type interface must implement abstract method reptile.bark() {
    public void reptile.bark()             // Duplicate method bark(), invalid returntype
        System.out.println("wowwow"); 
    }
    public void animal.bark(){           //Duplicate method bark(), invalid  returntype
        System.out.println("hsss");
    }
}
Above is my code. I have two interfaces with the same functions. My spring tool suite keeps on showing the errors mentioned in the comment statements. How to solve these errors?