CFD Online Discussion Forums

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

hyderkhan74 January 31, 2014 11: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 01: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 02:24.