source: java2python/core/test/testcode/HelloWorld.py@ 474

Last change on this file since 474 was 473, checked in by wouter, 18 months ago

#126 Added CommentBlock to clean up the messy comment handling code.

File size: 414 bytes
Line 
1import sys
2from typing import List
3
4
5class HelloWorld:
6 '''
7 Test for translation to python.<br>
8 Extra line for multiline-test.
9 '''
10 __username:str = "Jan"
11 __lastname:str = "Coens"
12 @staticmethod
13 def main(args:List[str]) -> None:
14 '''
15
16 @param args the arguments of the call.
17 '''
18 sys.stdout.write("Hello " + HelloWorld.__username + "!"+'\n')
19
20if __name__ == "__main__":
21 HelloWorld.main(sys.argv[1:])
Note: See TracBrowser for help on using the repository browser.