📜  在java代码示例中返回0并返回1

📅  最后修改于: 2022-03-11 14:52:33.704000             🧑  作者: Mango

代码示例1
The values 1 and 0 are of type int and are not implicitly 
convertible to boolean . So when you return 1, you are basically 
returning True as the final value of the function while return 0 is 
basically returning False as the final value of the function.