Skip to main content

Accessing .class information from JavaFX

1 reply [Last post]
eoh
Offline
Joined: 2007-12-12
Points: 0

Next question:

What would be the equivalent of the following Java code in JFX ?

System.out.println(MyInterface.class);

These at least do not work:

System.out.println(<>.class);
System.out.println(<>);
System.out.println(MyInterface);
System.out.println(MyInterface.class);

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
eoh
Offline
Joined: 2007-12-12
Points: 0

Okay, found it.

System.out.println(:MyInterface);