A variable is a container that holds values that are used in a Java program. Every variable must be declared to use a data type. For example, a variable could be declared to use one of the eight primitive data types: byte, short, int, long, float, double, char or boolean. And, every variable must be given an initial value before it can be used. int myAge = 21; The variable "myAge" is declared to be an int data type and initialized to a value of 21. Example: *use it code in processing only void setup(){ int xPos = 20;//initialized value 20 at xPos int yPos = 40;//initialized value 40 at yPos int radius = 50;//initialized value 50 at radius ellipse(xPos,yPos,radius,radius);//show circle with radius 50 } What is command for integer ? if int a = 30; what is value of a ? 33 functional programming is a programming paradigm, a style of building the structure and elements of computer programs, that treats computation as the evaluation of mathematical functions and avoids changing-state and mutable data. It is a declarative programming paradigm, which means programming is done with expressions . Type of Function 1. System Function 2. User define-Function ------43 System Function ellipse() /// line() User define-Function void draw_Tree(); void add(int x){ x+= 5; } println(add(5)); //result 10; -----54 Parameter && Return Function with Parameter and return value int add(int x) { x+=5; return x; } Function with no Parameter and return value void setup() { size(500,500); } --------66 Function only Parameter void draw_Ball(int x ,int y ,int r){ ellipse(x,y,r,r); } Function only Return value ==> year(); // second(); // hours();74 What is the system Function ??? What is the function without Parameter (Have return values) ?? 85 This is used to decide whether to do something at a special point, or to decide between two courses of action If we wish to have more than one statement following the if or the else, they should be grouped together between curly brackets. Such a grouping is called a compound statement or a block. Sometimes we wish to make a multi-way decision based on several conditions. The most general way of doing this is by using the else if variant on the if statement. This works by cascading several comparisons. As soon as one of these gives a true result. ---95 The following test decides whether a student has passed an exam with a pass mark of 45 if (result >= 45){ print("Pass"); } else{ print("Fail"); } ---105 The symbol you can use for condition = for assign value == equal != inequality < less than <= less than or equal to > greater than >= greater than or equal to ---113 If you want to compared two variable what symbol to use? If in statement if have one more if in statement than we call? 125 for loop is a programming language statement which allows code to be repeatedly executed. A for loop is classified as an iteration statement. The keyword used to declare a for loop is based on the heritage of the language and the prior programming languages it borrowed from, so programming languages that are descendants of or offshoots of a language that originally developed an iterator will often use the same keyword to name an iterator, e.g. descendants of ALGOL will use "for" ----136 Loop can be use command for use that loop 1.while 2.for 3.do..while in that case we speak about for-loop to use because that a loop with short command to use. to use for command for(int (name of variable) = (value); (value)(<)(anyvalue);(name)++){ } ----146 it is an example of the traditional for loop. void setup(){ for(int i = 0; i < 100; i++){ //Prints the numbers 0 to 99, each separated by a space. println(i); } } --156 How many of word "GO" ? if use this command for(int i =0;i<8;i++){ println("Go"); } ---163 what is value of variable x ? if Write this command void setup(){ int x = 5; for(int i = 0;i<10;i++){ x+=i; } println(x); } ----177 Array is one type of variable that you can stored more than one value , array is look like table you can stored each values with pass by reference. How to Use 1.Declar an array int[] number; 2.Create an array nummber = new int[2]; // 2 is length of array 3.Assign values number[0] = 5; number[1] = 3; Short Form = int[] number = {5,3}; --- How to use Array If you want to display values in your array, this your array int[] number ={5,4,6}; for(int i = 0;i