WAP that create interface on that you declare one method interest(p,r,n) then create two class simple and compound that implements interest and find simple and compound interest.
/*1. WAP that create interface on that you declare one method interest(p,r,n) then create two class simple and compound that implements interest and find simple and compound interest. */ interface k1 { void p(); } interface k2 { void r(); } interface k3 { void n(); } class Simple implements k1,k2 { public void p() { System.out.println("1 st");} public void r() {System.out.println("2nd");} } class Compound implements k3 { public void n() { System.out.println(" 3rd"); } } class Kk { public static void main(String []args) { Simple s=new Simple(); ...