Java do nothing
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.
If you want something noticeable, you can use
assert true;
This will allow you to have something that a reader can recognize or that can be searched for.