-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
40 lines (30 loc) · 839 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
from java.lang import System
from javax.swing import JFrame
from java.awt import Dimension
class Main:
def __init__(self):
self.mr_name = "John Doe"
self.mr_age = 42
self.mr_address = "123 Main Street"
self.mr_phone = "555-1234"
def main(self, args):
hello: str = "Hello, World " + 50 + "!"
System.out.println(hello)x
return 0
def add(self, a, b):
return a + b
def main(args):
hello: str = "Hello, World!"
System.out.println(hello)
return 0
if __name__ == "__main__":
main([])
f: JFrame = JFrame()
f.visible = True
f.size = Dimension(800, 600)
Main().main([])
System.out.println(Main().add(10, 15))
a: Main = Main()
a.mr_name = "Smith"
System.out.println(a.mr_name)
System.out.println(Main().mr_name)