Array,data type

344 views

Published on

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

No Downloads
Views
Total views
344
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
6
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Array,data type

  1. 1. Project Submitted on Data types By Veena Bhagyawani 106/10 civil lines, Ajmer 305001 Website: www.dezyneecole.com
  2. 2. ARRAY “Array is a group of continues or related data item that share a common name.” For Example- College[10]; Array Name Index Number
  3. 3. Array One Dimensional Array Two Dimensional Array Multi Dimensional Array
  4. 4. One Dimensional Array:int number[] = new int[5]; 10,20,30,40,50; For Example.- Storage Location Number[0] Number[1] Number[2] Number[3] Number[4] Assign Value Number[0]=10; Number[1]=20; Number[2]=30; Number[3]=40; Number[4]=50; Store Value Number[0] 10 Number[1] 20 Number[2] 30 Number[3] Number[4] 40 50
  5. 5. Creating An Array 1.Declearing The Array. 2.Creating Array. 3.Putting Values Into The Memory Location.
  6. 6. Declaration The Array Type arrayname[]; int number[5]; Type []arrayname; int [5] number;
  7. 7. Creation Of Array Arrayname=new type[size]; For Example:Number=new int[5];
  8. 8. Initialization Of An Array Arrayname[subscript]=value; For example: Number[0]=35; Number[1]=20; Number[2]=30;
  9. 9. Two Dimensional Array int myArray[][]; myarray =new int[3][2] Item1 Item2 Item3 100 200 300 400 500 600 Column0 column1 column2 [0][0] [0][1] [0][2] 100 200 [1][0] [1][1] SP1 SP2 Rows0 Rows1 400 500 300 [1][1] 600
  10. 10. “DATA TYPE” Data type specific the size in type of value that can be store.
  11. 11. Data Type in Java Primitive Non-Primitive Array Numeric Non-Numeric Character Integer Floating Point Interface Classes Boolean
  12. 12. Integer Type Integer Byte {-128 to 127} Long Short {-32,768 to 32,767} Int {2,147,483,648 to 2,147,483,647 } {9,223,372,036, 854,775,808 to 9,223,372,036, 854,775,807}
  13. 13. Floating Point Type Floating point Float {3.4e-038 to 1.7e+0.38} Double {3.4e-038 to 1.7e+308}
  14. 14. Character Type Java provide a character data type called char. Boolean Type TRUE FALSE
  15. 15. Thank You Presented By Veena Bhagyawani B.C.A 2nd Year

×