I'd like to call the below method and run the code:
public class Test01{public interface Printable{public void print(); } public class PrintRectangle implements Printable{public void print(){System.out.println("Rectangle"); }}
Aucun commentaire:
Enregistrer un commentaire