Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
AD6-Hussain Ali 202342200 AD6-Mousa 202342200
Application Development - 3 TTC Collage 2014/12/01
Content
• Idea of Variable
• Data Type
• Integer & Long
• Double & Float
• String & Char
Idea of Variable
• Allow us to save data into RAM
Data Type
Number TEXTDecimal
String CharDouble FloatInteger Long
Integer & Long
• Allow us to sign value that is number like 88
with its name into RAM.
Name Width Digit
long 64 15
int 32 9
Example
int a = 12345588;
int b = 2233477;
long c = (long) a * (long) b ;
System.out .println(c);
Double & Float
• Allow us to sign value that is decmal number
like 50.11 with its name into RAM.
Name Width in Bits Digit
...
Example
float f1 = 4.4f;
double d1 = 5.234d;
System.out.println( d1 + f1 );
String & Char
• Allow us to sign value that is character like ‘S’
or “ahmad” with its name into RAM.
Name Width in Bits ch...
Example
String Ahamd = “Ahamd Ali Mohamad” ;
char x = Ahamd.charAt(0) ;
System.out.println(Ahamd + “ = ” + x);
Special escape sequences
Notation Character represented
n Newline (0x0a)
r Carriage return (0x0d)
f Formfeed (0x0c)
b Back...
Priamry data type
Upcoming SlideShare
Loading in …5
×
Upcoming SlideShare
Thao rửa bể nước tại ô quan trưởng 0943 478866 sửa chữa ốp lát nhà vệ sinh,hut be phot
Next
Download to read offline and view in fullscreen.

0

Share

Download to read offline

Priamry data type

Download to read offline

variables

Related Books

Free with a 30 day trial from Scribd

See all

Related Audiobooks

Free with a 30 day trial from Scribd

See all
  • Be the first to like this

Priamry data type

  1. 1. AD6-Hussain Ali 202342200 AD6-Mousa 202342200 Application Development - 3 TTC Collage 2014/12/01
  2. 2. Content • Idea of Variable • Data Type • Integer & Long • Double & Float • String & Char
  3. 3. Idea of Variable • Allow us to save data into RAM
  4. 4. Data Type Number TEXTDecimal String CharDouble FloatInteger Long
  5. 5. Integer & Long • Allow us to sign value that is number like 88 with its name into RAM. Name Width Digit long 64 15 int 32 9
  6. 6. Example int a = 12345588; int b = 2233477; long c = (long) a * (long) b ; System.out .println(c);
  7. 7. Double & Float • Allow us to sign value that is decmal number like 50.11 with its name into RAM. Name Width in Bits Digit double 64 308 float 32 38
  8. 8. Example float f1 = 4.4f; double d1 = 5.234d; System.out.println( d1 + f1 );
  9. 9. String & Char • Allow us to sign value that is character like ‘S’ or “ahmad” with its name into RAM. Name Width in Bits characters String 64 2147483647 Char 8 1
  10. 10. Example String Ahamd = “Ahamd Ali Mohamad” ; char x = Ahamd.charAt(0) ; System.out.println(Ahamd + “ = ” + x);
  11. 11. Special escape sequences Notation Character represented n Newline (0x0a) r Carriage return (0x0d) f Formfeed (0x0c) b Backspace (0x08) s Space (0x20) t tab " Double quote ' Single quote backslash ddd Octal character (ddd) uxxxx Hexadecimal UNICODE character (xxxx)

variables

Views

Total views

233

On Slideshare

0

From embeds

0

Number of embeds

18

Actions

Downloads

3

Shares

0

Comments

0

Likes

0

×