Example: CreateObject method
This script gets the Java™ class "Java™.lang.Integer" and creates an object of that class in LotusScript®.
Dim mySession As JavaSession
Dim myClass As JavaClass
Dim myObject As JavaObject
Set mySession = New JavaSession ()
' Get Java "java.lang.Integer" class
Set myClass = mySession.GetClass("java/lang/Integer")
' Create a "java.lang.Integer" object
Set myObject = myClass.CreateObject("(I)V", 5)