how to do that?
views:
102answers:
1
+1
A:
Just import the package the API is in, create an instance and call the setter method on it:
import com.company.api.*;
public class ApiTester {
/**
* @param args
*/
public static void main(String[] args) {
ObjectToTest obj = new ObjectToTest();
obj.setHeight(10); // Example
System.out.println(obj.getHeight());
}
Shaharyar
2010-06-09 06:53:39