TAILIEUCHUNG - Chapter 2: Data and Expressions

Data-binding expressions are contained within delimiters and use the Eval and Bind functions. The Eval function is used to define one-way (read-only) binding. The Bind function is used for two-way (updatable) binding. In addition to calling Eval and Bind methods to perform data binding in a data-binding expression, you can call any publicly scoped code within the delimiters to execute that code and return a value during page processing. | Chapter 2 Data and Expressions © 2004 Pearson Addison-Wesley. All rights reserved 2- Data and Expressions Let's explore some other fundamental programming concepts Chapter 2 focuses on: character strings primitive data the declaration and use of variables expressions and operator precedence data conversions accepting input from the user Java applets introduction to graphics © 2004 Pearson Addison-Wesley. All rights reserved 2- Outline Character Strings Variables and Assignment Primitive Data Types Expressions Data Conversion Interactive Programs Graphics Applets Drawing Shapes © 2004 Pearson Addison-Wesley. All rights reserved 2- Character Strings A string of characters can be represented as a string literal by putting double quotes around the text: Examples: "This is a string literal." "123 Main Street" "X" Every character string is an object in Java, defined by the String class Every string literal represents a String object © 2004 Pearson Addison-Wesley. All rights .

TỪ KHÓA LIÊN QUAN
TÀI LIỆU HOT