skip to main
|
skip to sidebar
Jython
Monday, October 26, 2009
Use your java class in jython
Addtion.java:
package calc;
public class Addition {
public int add(int a, int b) {
return a + b;
}
}
Test.py:
import calc as ad
class Test:
add = ad.Addition()
print add.add(10, 20)
Test()
No comments:
Post a Comment
Newer Post
Home
Subscribe to:
Post Comments (Atom)
Followers
Blog Archive
▼
2009
(3)
▼
October
(3)
Run Time arguments
Use Java API in jython
Use your java class in jython
About Me
heyabhi
View my complete profile
No comments:
Post a Comment