From: <bc...@wo...> - 2001-03-22 17:52:45
|
[Mark Ackerman] >... > >Now I get: > >Traceback (innermost last): > File "<string>", line 1, in ? >AttributeError: class 'Util' has no attribute 'test' > > >for the method: > > public static int test(int a, int b) > { > return a*b; > } > >in the class Util. This works for me: public class Util { public static int test(int a, int b) { return a*b; } } Jython 2.1a1 on java1.3.0 (JIT: null) Type "copyright", "credits" or "license" for more information. >>> import Util >>> print Util.test(5,6) 30 regards, finn |