суббота, 2 февраля 2013 г.

оператор if в java

user is older than that. Adapt your code to match that in the image above and

So there are only two choices here: either the user is 18 or younger, or the

its own curly brackets. Here's our code again that checks a user's age:

off the different choices. The second choice goes after the word else and between

This goes between two round brackets. Again, curly brackets are used to section

The first line starts with if, followed by the condition you want to test for.

instead. Here's the structure of an IF … ELSE statement:

Instead of using two IF Statements, you can use an IF … ELSE Statement

Комментариев нет:

Отправить комментарий