CHAPTER 2BASIC PROGRAMMINGCONCEPTSMr.Warawut Khangkhane-Mail: awarawut@hotmail.comSocial Media: www.facebook.com/AjWarawut
Mr.Warawut Khangkhan   Chapter 2 Basic Programming Concepts                                 Basic Programming Concepts    ...
Mr.Warawut             Chapter 1 Java & OOP Khangkhan                                    3
Mr.Warawut Khangkhan   Chapter 2 Basic Programming Concepts                       Chapter 2 Basic Programming Concepts    ...
JAVA                                              Mr.Warawut                                               Khangkhan     F...
Mr.Warawut                           Chapter 2 Basic Programming Concepts               Khangkhan                         ...
(DECLARATION)                                       Mr.Warawut                                        Khangkhan  ˈ      F ...
F                           Mr.Warawut                            KhangkhanString name;float score;                       ...
Mr.Warawut Khangkhan   Chapter 2 Basic Programming Concepts                                 Basic Programming Concepts    ...
F          (DATA TYPE)                                                 Mr.Warawut                                         ...
F(PRIMITIVE DATA TYPE)                                Mr.Warawut                                 Khangkhan F             (...
INTEGER TYPE                                                Mr.Warawut                                                 Kha...
EX. INTEGER TYPE                         Mr.Warawut                          Khangkhanbyte A = 65;short B = 32767;        ...
FLOATING POINT TYPE                                             Mr.Warawut                                              Kh...
CHARACTER TYPE                               Mr.Warawut                                KhangkhanData Type Size   Range    ...
Mr.Warawut                          Chapter 2 Basic Programming Concepts              Khangkhan                           ...
BOOLEAN TYPE                                       Mr.Warawut                                        Khangkhan F          ...
STRING TYPE                                  Mr.Warawut                                   Khangkhan     Java       F   F F...
Mr.Warawut Khangkhan   Chapter 2 Basic Programming Concepts                                 Basic Programming Concepts    ...
F         (CONSTANT)                                     Mr.Warawut                                      Khangkhan     F F...
Mr.Warawut                          Chapter 2 Basic Programming Concepts              Khangkhan                           ...
Mr.Warawut                          Chapter 2 Basic Programming Concepts              Khangkhan                           ...
Mr.Warawut Khangkhan   Chapter 2 Basic Programming Concepts                                 Basic Programming Concepts    ...
(OPERATOR)                                                 Mr.Warawut                                                  Kha...
(OPERATOR)                                           Mr.Warawut                                            Khangkhan      ...
ASSIGNMENTOPERATORS                          Mr.Warawut                           KhangkhanOperator   Description=        ...
ASSIGNMENTOPERATORS                                          Mr.Warawut                                           Khangkha...
ARITHMETIC OPERATORS                               Mr.Warawut                                KhangkhanOperator Description...
COMPARISONOPERATORS                                   Mr.Warawut                                    KhangkhanOperator Desc...
LOGICAL OPERATORS                                   Mr.Warawut                                    KhangkhanOperator   Desc...
LOGICAL OPERATORS                                  Mr.Warawut                                   Khangkhana   b a && b   a ...
UNARY OPERATORS                                                     Mr.Warawut                                            ...
UNARY OPERATORS                               Mr.Warawut                                Khangkhana = 5;System.out.println(...
BITWISE OPERATORS                                            Mr.Warawut                                             Khangk...
BITWISE OPERATORS                                    Mr.Warawut                                     Khangkhana    b    a &...
BITWISE OPERATORS                                  Mr.Warawut                                   Khangkhan   F a = 01000001...
BITWISE OPERATORS                                      Mr.Warawut                                       Khangkhan       F ...
BITWISE OPERATORS                                   Mr.Warawut                                    Khangkhan    F a = 01000...
BITWISE OPERATORS                                     Mr.Warawut                                      Khangkhan a << 2    ...
BITWISE OPERATORS                                      Mr.Warawut                                       Khangkhan b >> 3  ...
Mr.Warawut Khangkhan   Chapter 2 Basic Programming Concepts                       Chapter 2 Basic Programming Concepts    ...
Mr.Warawut               Chapter 2 Basic Programming Concepts Khangkhan                                                   ...
1    ( ), [ ]                                         L   R2    ++, --, !, ~                                     R   L    ...
Mr.Warawut                                   Chapter 2 Basic Programming Concepts                    Khangkhan            ...
a = 5, b = 2, c = 10, d = 3                                  Mr.Warawut                                   Khangkhana+b*c+d...
Mr.Warawut Khangkhan   Chapter 2 Basic Programming Concepts                       Chapter 2 Basic Programming Concepts    ...
F                                         Mr.Warawut                                          KhangkhanImplicit Type Conve...
Mr.Warawut                         Chapter 2 Basic Programming Concepts             Khangkhan                             ...
EXPLICIT TYPECONVERSION                                                         Mr.Warawut                                ...
Mr.Warawut                                 Chapter 2 Basic Programming Concepts                     Khangkhan             ...
EXPLICIT TYPECONVERSION                                                                                 Mr.Warawut        ...
F METHOD F                    CLASS WRAPPER                                                                         Mr.War...
Mr.Warawut                               Chapter 2 Basic Programming Concepts                   Khangkhan                 ...
Mr.Warawut Khangkhan   Chapter 2 Basic Programming Concepts                                 Basic Programming Concepts    ...
F     F PRINTLN                                               Mr.Warawut                                                Kh...
FARGUMENT                                            Mr.Warawut                                             Khangkhan b   ...
Mr.Warawut             Chapter 2 Basic Programming Concepts Khangkhan                                                    57
F     F               PRINTF                                                  Mr.Warawut                                  ...
Mr.Warawut                           Chapter 2 Basic Programming Concepts               Khangkhan                         ...
Mr.Warawut                           Chapter 2 Basic Programming Concepts               Khangkhan                         ...
Mr.Warawut             Chapter 2 Basic Programming Concepts Khangkhan                                                    61
F     FJOPTIONPANE                                             Mr.Warawut                                              Kha...
F     F JOPTIONPANE                                                   Mr.Warawut                                          ...
F        F    JOPTIONPANE                                               Mr.Warawut                                        ...
Mr.Warawut             Chapter 2 Basic Programming Concepts Khangkhan                                                    65
FDECIMALFORMAT                                               Mr.Warawut                                                Kha...
F DECIMALFORMAT                                                        Mr.Warawut                                         ...
Mr.Warawut             Chapter 2 Basic Programming Concepts Khangkhan                                                    68
F    FINPUTSTREAMREADER                                          Mr.Warawut                                           Khan...
F INPUTSTREAMREADER                                                           Mr.Warawut                                  ...
Mr.Warawut             Chapter 2 Basic Programming Concepts Khangkhan                                                    71
F            F                SCANNER                                                              Mr.Warawut             ...
SCANNER                                              Mr.Warawut                                               Khangkhan   ...
Mr.Warawut             Chapter 2 Basic Programming Concepts Khangkhan                                                    74
F     FJOPTIONPANE                                           Mr.Warawut                                            Khangkh...
JOPTIONPANE                                                  Mr.Warawut                                                   ...
JOPTIONPANE                                           Mr.Warawut                                            KhangkhanType ...
Mr.Warawut             Chapter 2 Basic Programming Concepts Khangkhan                                                    78
Upcoming SlideShare
Loading in …5
×

Object-Oriented Programming 2

719
-1

Published on

Basic Programming Concepts

Published in: Education, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
719
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
51
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Object-Oriented Programming 2

  1. 1. CHAPTER 2BASIC PROGRAMMINGCONCEPTSMr.Warawut Khangkhane-Mail: awarawut@hotmail.comSocial Media: www.facebook.com/AjWarawut
  2. 2. Mr.Warawut Khangkhan Chapter 2 Basic Programming Concepts Basic Programming Concepts PROGRAMMING IN STRUCTURED JAVA 2
  3. 3. Mr.Warawut Chapter 1 Java & OOP Khangkhan 3
  4. 4. Mr.Warawut Khangkhan Chapter 2 Basic Programming Concepts Chapter 2 Basic Programming Concepts VARIABLE DATA & 4
  5. 5. JAVA Mr.Warawut Khangkhan F F a-z, A-Z, _, $ F F Chapter 2 Basic Programming Concepts a-z, A-Z, _, $ F F F F ˈ(Case Sensitive) F (Reserved Word)Literal Words (True, False, Null) 5
  6. 6. Mr.Warawut Chapter 2 Basic Programming Concepts Khangkhan 6F RESERVED WORD
  7. 7. (DECLARATION) Mr.Warawut Khangkhan ˈ F F (Data Type) F Chapter 2 Basic Programming Concepts dataType varName [= value];dataType = FvarName =value = F 7
  8. 8. F Mr.Warawut KhangkhanString name;float score; Chapter 2 Basic Programming Conceptschar grade;String name = “Warawut”;float score = 85.5f;char grade = ‘A’; 8
  9. 9. Mr.Warawut Khangkhan Chapter 2 Basic Programming Concepts Basic Programming Concepts DATA TYPE 9
  10. 10. F (DATA TYPE) Mr.Warawut KhangkhanPrimitive Data Type - F F F Chapter 2 Basic Programming ConceptsClass Type –InterfaceArray Type – F ˈ F F F ˈ 10
  11. 11. F(PRIMITIVE DATA TYPE) Mr.Warawut Khangkhan F (Integer) F Chapter 2 Basic Programming Concepts (Floating Point) F (Character) F F (Boolean) 11
  12. 12. INTEGER TYPE Mr.Warawut KhangkhanData Type Size Range (Byte) Chapter 2 Basic Programming Conceptsbyte 1 -128 to +127short 2 -32,768 to +32,767int 4 -2,147,483,648 to +2,147,483,647long 8 -9,223,372,036,854,775,808 to +9,223,372,036,854,775,807 12
  13. 13. EX. INTEGER TYPE Mr.Warawut Khangkhanbyte A = 65;short B = 32767; Chapter 2 Basic Programming Conceptsint C = 2147286444;long D = 21472864448L;long E = 21472864438l; 13
  14. 14. FLOATING POINT TYPE Mr.Warawut KhangkhanData Type Size Range (Byte) Chapter 2 Basic Programming Conceptsfloat 4 -3.40292347E+38 to +3.40292347E+38double 8 -1.79769313486231570E+308 to +1.79769313486231570E+308float a = 200;float b = 200.5f; // 200.5F;double c = 300; 14double d = 300.7d; // 300.7D;
  15. 15. CHARACTER TYPE Mr.Warawut KhangkhanData Type Size Range (Byte) Chapter 2 Basic Programming Conceptschar 2 0 to 65,535char c = ‘A’;char cInt = 65; 15
  16. 16. Mr.Warawut Chapter 2 Basic Programming Concepts Khangkhan 16EX. PROGRAMMINGCHARACTER TYPE
  17. 17. BOOLEAN TYPE Mr.Warawut Khangkhan F F F2 F F ˈ F Chapter 2 Basic Programming Concepts true falseboolean b1 = false;boolean b2 = true; 17
  18. 18. STRING TYPE Mr.Warawut Khangkhan Java F F F F Chapter 2 Basic Programming Concepts (class)String name = “Warawut”;String langProg = “Java”; 18
  19. 19. Mr.Warawut Khangkhan Chapter 2 Basic Programming Concepts Basic Programming Concepts CONSTANT 19
  20. 20. F (CONSTANT) Mr.Warawut Khangkhan F F F Chapter 2 Basic Programming Concepts final dataType varName [= value];dataType = FvarName =value = F 20
  21. 21. Mr.Warawut Chapter 2 Basic Programming Concepts Khangkhan 21EX. PROGRAMMINGCONSTANT
  22. 22. Mr.Warawut Chapter 2 Basic Programming Concepts Khangkhan 22EX. PROGRAMMINGCONSTANT
  23. 23. Mr.Warawut Khangkhan Chapter 2 Basic Programming Concepts Basic Programming Concepts OPERATOR 23
  24. 24. (OPERATOR) Mr.Warawut Khangkhan F (Expression) F F F F , , ˆ F Chapter 2 Basic Programming ConceptsF F (Operator) F F num1 + num2 a = (b - c) * d 24
  25. 25. (OPERATOR) Mr.Warawut Khangkhan F (AssignmentOperators) Chapter 2 Basic Programming Concepts F (ArithmeticOperators) (ComparisonOperators) F (Logical Operators) (Unary Operators) (Bitwise Operators) 25
  26. 26. ASSIGNMENTOPERATORS Mr.Warawut KhangkhanOperator Description= F Chapter 2 Basic Programming Concepts+= F-= F*= F/= F%= F 26
  27. 27. ASSIGNMENTOPERATORS Mr.Warawut Khangkhan F F F F Fa = 30 a = 30 30 Chapter 2 Basic Programming Conceptsa += 5 a = a + 5 35a -= 10 a = a - 10 25a *= 2 a = a * 2 50a /= 5 a = a / 5 10a %= 5 a = a % 5 0 27
  28. 28. ARITHMETIC OPERATORS Mr.Warawut KhangkhanOperator Description Example + a + b Chapter 2 Basic Programming Concepts - a - b * a * b / a / b % a % b 28
  29. 29. COMPARISONOPERATORS Mr.Warawut KhangkhanOperator Description Example == F a == b Chapter 2 Basic Programming Concepts != F F a != b > F a > b >= F F a >= b < F F a < b <= F F F a <= b 29
  30. 30. LOGICAL OPERATORS Mr.Warawut KhangkhanOperator Description Example && and a && b Chapter 2 Basic Programming Concepts || or a || b ! not !a 30
  31. 31. LOGICAL OPERATORS Mr.Warawut Khangkhana b a && b a || b !a !bT T T T F F Chapter 2 Basic Programming ConceptsT F F T F TF T F T T FF F F F T TT – TrueF – False 31
  32. 32. UNARY OPERATORS Mr.Warawut KhangkhanOperator Description Format Example Execute ++ F Postfix a = b++ a=b b=b+1 Chapter 2 Basic Programming Concepts Prefix a = ++ b b=b+1 a=b F Postfix a = b-- a=b -- b=b-1 Prefix a = --b b=b–1 a=b 32
  33. 33. UNARY OPERATORS Mr.Warawut Khangkhana = 5;System.out.println(a);System.out.println(a); Chapter 2 Basic Programming Concepts 5System.out.println(a++);System.out.println(a++); 5System.out.println(++a);System.out.println(++a); 7System.out.println(a);System.out.println(a); 7System.out.println(--a);System.out.println(--a); 6System.out.println(a--); (a--System.out.println(a--); 6System.out.println(a);System.out.println(a); 5 33
  34. 34. BITWISE OPERATORS Mr.Warawut KhangkhanOperator Description << left shift F Chapter 2 Basic Programming Concepts >> right shift & bitwise AND | bitwise OR ^ bitwise XOR ˈ F 34(Operand) F Integer Character
  35. 35. BITWISE OPERATORS Mr.Warawut Khangkhana b a & b a | b a ^ b1 1 1 1 0 Chapter 2 Basic Programming Concepts1 0 0 1 10 1 0 1 10 0 0 0 01 – Open (True)0 – Close (False) 35
  36. 36. BITWISE OPERATORS Mr.Warawut Khangkhan F a = 01000001, b = 00100001 a&b Chapter 2 Basic Programming Concepts a 0 1 0 0 0 0 0 1 & b 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 1 36
  37. 37. BITWISE OPERATORS Mr.Warawut Khangkhan F a = 01000001, b = 00100001 a|b Chapter 2 Basic Programming Concepts a 0 1 0 0 0 0 0 1 | b 0 0 1 0 0 0 0 1 0 1 1 0 0 0 0 1 37
  38. 38. BITWISE OPERATORS Mr.Warawut Khangkhan F a = 01000001, b = 00100001 a^b Chapter 2 Basic Programming Concepts a 0 1 0 0 0 0 0 1 ^ b 0 0 1 0 0 0 0 1 0 1 1 0 0 0 0 0 38
  39. 39. BITWISE OPERATORS Mr.Warawut Khangkhan a << 2 Chapter 2 Basic Programming Concepts a 0 0 1 0 0 0 0 1 1 0 0 0 0 1 0 0 If x = 8 then y = x << 2 is that y = 8 * 22 = 32 39
  40. 40. BITWISE OPERATORS Mr.Warawut Khangkhan b >> 3 Chapter 2 Basic Programming Concepts b 0 1 0 0 0 0 0 1 0 0 0 0 1 0 0 0 If x = 32 then y = x >> 2 is that y = 32 / 22 = 8 40
  41. 41. Mr.Warawut Khangkhan Chapter 2 Basic Programming Concepts Chapter 2 Basic Programming Concepts OPERATOR OF PRCEDENCE 41
  42. 42. Mr.Warawut Chapter 2 Basic Programming Concepts Khangkhan 42 F F F F F F (Operand) F F ˈ F
  43. 43. 1 ( ), [ ] L R2 ++, --, !, ~ R L Mr.Warawut Khangkhan3 *, /, % L R4 +, - L R5 <<, >>, >>> L R Chapter 2 Basic Programming Concepts6 <, <=, >, >= L R7 ==, != L R8 & L R9 ^ L R10 | L R11 && L R12 || L R13 ?: L R14 =, +=, -=, *=, /=, %=, <<=, >>=, >>>=, &=, ^=, R L != 43
  44. 44. Mr.Warawut Chapter 2 Basic Programming Concepts Khangkhan 44 25 25a = 5, b = 2, c = 10 70 70 (a + b) * c = ? a+b*c=?
  45. 45. a = 5, b = 2, c = 10, d = 3 Mr.Warawut Khangkhana+b*c+d=? 73 28 Chapter 2 Basic Programming Concepts(a + b) * c + d = ? 73 28(a + b) * (c + d) = ? 73a + (b * c) + d = ? 28 45
  46. 46. Mr.Warawut Khangkhan Chapter 2 Basic Programming Concepts Chapter 2 Basic Programming Concepts CONVERSION DATA TYPE 46
  47. 47. F Mr.Warawut KhangkhanImplicit Type Conversion - F F Chapter 2 Basic Programming ConceptsExplicit Type Conversion - F F 47
  48. 48. Mr.Warawut Chapter 2 Basic Programming Concepts Khangkhan 48 F F ˈIMPLICIT TYPE FCONVERSION ˈ F F F
  49. 49. EXPLICIT TYPECONVERSION Mr.Warawut Khangkhan F F ˈ F F ˈ F F Chapter 2 Basic Programming Concepts valNameResult = (dataType) valNamevalNameResult = F FdataType = FvalName = F F 49
  50. 50. Mr.Warawut Chapter 2 Basic Programming Concepts Khangkhan 50EX. CODE EXPLICIT TYPECONVERSION
  51. 51. EXPLICIT TYPECONVERSION Mr.Warawut Khangkhan F F F F ˈ F Java Chapter 2 Basic Programming Concepts F F F(Character) F ˈ F F F ˈ F (Method)(Class) Wrapper ˈ class F F (Primitive Data Type) 51
  52. 52. F METHOD F CLASS WRAPPER Mr.Warawut KhangkhanClass Primitive Method F F ˈ Method F F ˈWrapper Data Type Chapter 2 Basic Programming ConceptsInteger int Integer.parseInt( ) Integer.toString( )Float float Float.parseFloat( ) Float.toString( )Double double Double.parseDouble( ) Double.toString( ) 52
  53. 53. Mr.Warawut Chapter 2 Basic Programming Concepts Khangkhan 53EX. CODE CLASS WRAPPER
  54. 54. Mr.Warawut Khangkhan Chapter 2 Basic Programming Concepts Basic Programming Concepts DATA OUTPUT & INPUT 54
  55. 55. F F PRINTLN Mr.Warawut Khangkhan Method println( ) print( ) F F Object out Class System Chapter 2 Basic Programming ConceptsSystem.out.println(arg1 + arg2 + … + arg_n); or System.out.print(arg1 + arg2 + .. + arg_n);arg1, arg2, arg_n = ˈ F F 55
  56. 56. FARGUMENT Mr.Warawut Khangkhan b cursor 1 Chapter 2 Basic Programming Concepts f F F n F r cursor F t ’ ‘ ” ” xxx Ascii F 065 A 56uxxx Unicode F u0008 F
  57. 57. Mr.Warawut Chapter 2 Basic Programming Concepts Khangkhan 57
  58. 58. F F PRINTF Mr.Warawut Khangkhan Method printf( ) F F Object out Class System Chapter 2 Basic Programming ConceptsSystem.out.printf(Control_String, arg1 + arg2 + … + arg_n);Control_String = F , Farg1, arg2, arg_n = ˈ F F 58
  59. 59. Mr.Warawut Chapter 2 Basic Programming Concepts Khangkhan 59METHOD exponential F F F F PRINTF %d %u %c %e %s %f
  60. 60. Mr.Warawut Chapter 2 Basic Programming Concepts Khangkhan 60 F F F F F F F F METHOD PRINTF F F F F F F F F F ˈ F F ) + - .(F F
  61. 61. Mr.Warawut Chapter 2 Basic Programming Concepts Khangkhan 61
  62. 62. F FJOPTIONPANE Mr.Warawut KhangkhanClass JOptionPane FGraphic Mode Popup Chapter 2 Basic Programming ConceptsWindow F DialogboxMessageDialog F methodshowMessageDialog( ) F F F Class JOptionPane F F ObjectClass JOptionPane F F import class package javax.swing F project 62
  63. 63. F F JOPTIONPANE Mr.Warawut Khangkhan JOptionPane.showMessageDialog( Parent_Window, Message, Title, Type); Chapter 2 Basic Programming ConceptsParent_Window = ˈ F F F F ˈ null Dialog box FMessage = ˈ F Dialog boxTitle = ˈ F F Title bar 63
  64. 64. F F JOPTIONPANE Mr.Warawut KhangkhanType = ˈ Dialog boxF F Chapter 2 Basic Programming Concepts • ERROR_MESSAGE - F • INFORMATION_MESSAGE - F • PLAIN_MESSAGE - F F F • QUESTION_MESSAGE - • WARNING_MESSAGE - F 64
  65. 65. Mr.Warawut Chapter 2 Basic Programming Concepts Khangkhan 65
  66. 66. FDECIMALFORMAT Mr.Warawut Khangkhan ˈ F F F F Chapter 2 Basic Programming Concepts Class DecimalFormat F import package java.text FProject 66
  67. 67. F DECIMALFORMAT Mr.Warawut KhangkhanDecmialFormat df = new DecimalFormat(arg); String str = df.format(payment); Chapter 2 Basic Programming Conceptsarg = ˈ F F • 0 0 F • “#” F F0 ˈ 0 F • “,” ˈdf = ˈ object class F 67str = ˈ F F F
  68. 68. Mr.Warawut Chapter 2 Basic Programming Concepts Khangkhan 68
  69. 69. F FINPUTSTREAMREADER Mr.Warawut KhangkhanClass InputStreamReader ˈ F Class BufferedReader Chapter 2 Basic Programming Concepts F 1 F Method readLine( ) ˈ F F (String) F import package java.io F 69
  70. 70. F INPUTSTREAMREADER Mr.Warawut KhangkhanInputStreamReader rd = new InputStreamReader(System.in); BufferedReader stdin = new BufferedReader(rd); Chapter 2 Basic Programming Concepts or BufferedReader stdin = new InputStreamReader( new InputStreamReader(System.in));reader = ˈ object class InputStreamReaderstdin = ˈ object class BufferedReader 70
  71. 71. Mr.Warawut Chapter 2 Basic Programming Concepts Khangkhan 71
  72. 72. F F SCANNER Mr.Warawut Khangkhan F F ˈ F F Chapter 2 Basic Programming Concepts F Scanner F F object classScanner Fimport package java.util 72
  73. 73. SCANNER Mr.Warawut Khangkhan Scanner sn = new Scanner(System.in); Chapter 2 Basic Programming Conceptssn = ˈ object F class ScannerSystem.in = ˈ F F F F F ˂ FMethod•nextInt( ) F Integer•nextFloat( ) F Float•nextDouble( ) F Double 73•nextLine( ) F String
  74. 74. Mr.Warawut Chapter 2 Basic Programming Concepts Khangkhan 74
  75. 75. F FJOPTIONPANE Mr.Warawut Khangkhan F Method showInputDialog( ) F ˈ F F (String) Chapter 2 Basic Programming Concepts F JOptionPane F F objectclass JOptionPane Fimport package javax.swing 75
  76. 76. JOPTIONPANE Mr.Warawut Khangkhan JOptionPane.showInputDialog( Parent_Window, Message, Title, Type); Chapter 2 Basic Programming ConceptsParent_Window = ˈ F F F F ˈ null Dialog box FMessage = ˈ F Dialog boxTitle = ˈ F F Title bar 76
  77. 77. JOPTIONPANE Mr.Warawut KhangkhanType = ˈ Dialog boxF F Chapter 2 Basic Programming Concepts • ERROR_MESSAGE - F • INFORMATION_MESSAGE - F • PLAIN_MESSAGE - F F F • QUESTION_MESSAGE - • WARNING_MESSAGE - F 77
  78. 78. Mr.Warawut Chapter 2 Basic Programming Concepts Khangkhan 78
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×