Java syntax: Difference between revisions

Content deleted Content added
m Operators: no curly quotes
Line 488:
 
====<code>if</code> statement====
[[Conditional (computer programming)|if statements]] in Java are similar to those in C and use the same syntax:
<syntaxhighlight lang="java">
if (i == 3) doSomething();