Programming 1 Lecture 3 (Chapter 2) PDF

Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...

Document Details

FunMoldavite7778

Uploaded by FunMoldavite7778

Dr/ Mahmoud Gamal

Tags

java programming programming computer science lecture notes

Summary

This document is a lecture on the introductory concepts of Java programming. It explains data types, expressions, operators, and how to work with variables. It also deals with common errors in Java and solutions.

Full Transcript

Programming 1 Lecture 3 Chapter 2: Introduction to Java Programming Dr/ Mahmoud Gamal 1 Data Types: Type: A name for a category or set of data values that are related, as in type int in java, which used to represent in...

Programming 1 Lecture 3 Chapter 2: Introduction to Java Programming Dr/ Mahmoud Gamal 1 Data Types: Type: A name for a category or set of data values that are related, as in type int in java, which used to represent integer values. Examples: integer, real number, string 2 Java Data Types: 3 Expressions: 4 Arithmetic Operator: 5 Integer division with / 6 Integer remainder with % 7 Precedence: 8 Precedence: Summary: 9 Precedence Examples: 10 Precedence Questions: 11 Real numbers ( Type double or float): 12 Real Number Example: 13 Mixing Types: 14 String Concatenation: 15 Variables: Receipt Example: 16 Variables: 17 Declaration: 18 Assignment: 19 Declaration/initialization: 20 Using Variables: 21 Assignment and algebra: 22 Assignment and Types: 23 Compile Errors: 24 Printing a variable's Value: 25

Use Quizgecko on...
Browser
Browser