Initial commit
This commit is contained in:
23
samples/test/variant_test.java
Normal file
23
samples/test/variant_test.java
Normal file
@@ -0,0 +1,23 @@
|
||||
package samples.test;
|
||||
import com.jacob.com.*;
|
||||
|
||||
class variant_test
|
||||
{
|
||||
public static void main(String[] args)
|
||||
{
|
||||
System.runFinalizersOnExit(true);
|
||||
Variant v = new Variant();
|
||||
v.putInt(10);
|
||||
System.out.println("got="+v.toInt());
|
||||
v.putInt(10);
|
||||
System.out.println("got="+v.toDouble());
|
||||
v.putString("1234.567");
|
||||
System.out.println("got="+v.toString());
|
||||
v.putBoolean(true);
|
||||
System.out.println("got="+v.toBoolean());
|
||||
v.putBoolean(false);
|
||||
System.out.println("got="+v.toBoolean());
|
||||
v.putCurrency(123456789123456789L);
|
||||
System.out.println("got="+v.toCurrency());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user