You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Learn/Jb30_Interface2.java

31 lines
444 B

public class Jb30_Interface2
{
//ʵ<>ֵ<EFBFBD><D6B5><EFBFBD>USB<53>ӿڹ<D3BF><DAB9><EFBFBD>
public static void main(String[] args)
{
useUSB(new Upan());
}
public static void useUSB(USB u) //<2F>ӿ<EFBFBD><D3BF><EFBFBD><EFBFBD>͵<EFBFBD><CDB5><EFBFBD><EFBFBD>ã<EFBFBD><C3A3><EFBFBD><EFBFBD>ڽ<EFBFBD><DABD>գ<EFBFBD>ָ<EFBFBD>򣩽ӿڵ<D3BF><DAB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
{
u.open();
u.close();
}
}
interface USB
{
public void open();
public void close();
}
class Upan implements USB
{
public void open()
{
System.out.println("<22><><EFBFBD><EFBFBD>");
}
public void close()
{
System.out.println("<22>ر<EFBFBD>");
}
}