Java无能为力 [英] Java do nothing
本文介绍了Java无能为力的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Java中,Python的 pass
等效于什么?我意识到我可以使用 continue
或不完成语句的主体来实现该效果,但是我喜欢使用 pass
语句.
What is the equivalent to Python's pass
in Java? I realize that I could use continue
or not complete the body of a statement to achieve that effect, but I like having a pass
statement.
推荐答案
只需使用分号;
,它具有相同的效果.
Just use a semi-colon ;
, it has the same effect.
这篇关于Java无能为力的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文