CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   STAR-CCM+ (https://www.cfd-online.com/Forums/star-ccm/)
-   -   Java and interface (https://www.cfd-online.com/Forums/star-ccm/129240-java-interface.html)

hyderkhan74 January 31, 2014 10:55

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.

me3840 February 4, 2014 00:53

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.