dimanche 1 mars 2015

Create a main method to run the below code


I'm learning Java. I wonder how to run the below 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