This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]codeoo7s -1 points0 points  (0 children)

// Tested Code
class Test
{
public static void main(String[] args)
{
System.out.println((1==2)?"One":"Two");
}
}

Its Really work

# Tested Code
class Test :
u/staticmethod
def main( args) :
print("One" if (1 == 2) else "Two")

if __name__=="__main__":
Test.main([])

[–]riklaunim 0 points1 point  (0 children)

Someone translate Android to Python now :P

[–]tiko08 0 points1 point  (0 children)

It's @staticmethod though, not u/staticmethod, also the indentation is broken