|
[Sponsors] |
January 31, 2014, 10:55 |
Java and interface
|
#1 |
Member
hayder
Join Date: Jan 2012
Posts: 32
Rep Power: 14 |
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. |
|
February 4, 2014, 00:53 |
|
#2 |
Senior Member
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24 |
Can't recall the syntax offhand, but you will do something like:
if(interface1.type instanceof InternalInterface) then { iterface2.setType baffleInterface } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
I developed an FEM toolkit in Java: FuturEye | nkliuyueming | Main CFD Forum | 7 | January 29, 2016 13:28 |
JAVA and an exersise | Alej | Main CFD Forum | 1 | July 17, 2006 09:25 |
java vs c++ | zxaar | Main CFD Forum | 10 | December 3, 2004 02:05 |
Graphical user interface | prasat | Main CFD Forum | 10 | January 16, 2003 08:39 |