Java and interface
Hi
I am new in Java but i need to write code to change the interface type in depend on the type of another interface by using IF statment, So for example If interface one be internal interface, interface two will be baffle type. Thanks in advance. |
Can't recall the syntax offhand, but you will do something like:
if(interface1.type instanceof InternalInterface) then { iterface2.setType baffleInterface } |
All times are GMT -4. The time now is 00:38. |