2. Java Basics. Java Statements презентация
Содержание
- 2. Comments /* . . . */ - multi line comment
- 3. How to Use Comments Comments should be used to give overviews
- 4. Variables Variables declaration: int k;
- 5. 1. What will this program output? public class InitTest {
- 6. 2. What will this program output? public class Oblzm {
- 7. 3. What will this program output? public class Oblzm {
- 8. 4. What will this program output? public class Oblzm {
- 9. Constant Declaration final modifier: final int a = 42;
- 10. If-Then_Else Statement I if (boolean_expression) { statements } if (boolean_expression)
- 11. If-Then_Else Statement II if (boolean_expression) { statements; } else if (boolean_expression)
- 12. If-Then-Else Example int a = 10; if (a > 0) {
- 13. Switch Statement switch(integral-expression) { case integer-value1 : statements;
- 14. Switch Example char c = ’b’; switch(c) { case ’a’:
- 15. Switch Statement Expressions You can use enumerations as switch expression and
- 16. While and Do-While Statement while (boolean_expression) { statements; } do
- 17. While Example double a = 100.; while (a >= 1) {
- 18. Do-While Example double a = 0.5; do { System.out.println(a);
- 19. For Statement for (initialization; Boolean-expression; step) { statements; }
- 20. For Examples for (int i = 10, k = 20; i
- 21. Break and Continue Statements break quits the loop without executing the
- 22. Use Break with a Label L: for … {
- 23. Exercise 2.2.1. Find and print all divisors of a given natural
- 24. Exercise 2.2.1. See 221Divisors project for the full text.
- 25. Exercise 2.2.2. Find and print all prime divisors of a given
- 26. Exercise 2.2.3. Find sum of an infinite row for a given
- 27. Manuals Learning the Java Language. Language Basics
- 28. Скачать презентацию



























Слайды и текст этой презентации
Похожие презентации