I have posted this question
http://stackoverflow.com/questions/2874487/how-can-i-implement-this-python-snippet-in-java
I have compiled it now i need to use in main project
public static void main(String[]args){
}
Can anybody show me example?