Java is not doing anything

Which is equivalent to the Python pass in Java? I understand that I could use the continue or not to fill the approval body to achieve this effect, but I like to have an operator pass .

+6
source share
3 answers

Just use polutochku ; It has the same effect.

+13
source
 ; 

; - empty statement. As a rule, you do not need to - you can just put anything in parentheses to the empty cycle, but it can be useful.

+4
source

If you want something noticeable, you can use

 assert true; 

This will allow you to get that the reader can identify or that can be found.

+2
source

All Articles