Minggu, 12 Juni 2011

JAVA : conversion and casting's data type


download  materi conversion and casting's data type

1. type conversion

we are ordinary do point application one type with other type. if two that type kompatibel therefore Java will do self acting conversion.

example:
if we assign value int goes to variable get long's type.

are not all type mutually kompatibel.

example:
no conversion which is defined from double goes to byte.

We make a abode to be still get to get type conversion that don't kompatibel manually, we get ready to take on accordingly. We do casting. We shall know consequence who may happen so we handle it in order not to begets rioting.

2. convert auto type

while one data type at gives to other data type variable therefore Java will do self acting type conversion if pock two following requisites:
1. Two type is kompatibel
2. Fairish intent type greater at source type appeal

While requisite second tesebut is accomplished, convert enlargement will do self acting Java.

example:
int's type always big have which suffice to keep all all point byte that legitimate. For int's variable case is filled with byte, we not necessarily do casting explicit ala.

Convert enlargement will at do on integer and dot number floats that kompatibel one by other. Type numerik not kompatibel with char or boolean. char's type and boolean is not mutually kompatibel.

Java also self acting does to convert type while keep literal integer goes to variable get byte's type, short, or long.

3. Casting

Available our possible wants to thrust conversion one type goes to other type. Process this enforcing at casting's mention. Casting often at requires while function transfer type in contrast to type which required by operation. casting's action at do with place type that at expects in couple sign boxs in at appreciative left that wants at conversion.

Sintaks casting as follows:

 (target-type) value

type's target define type that at wants deep conversion go to value's type.

example:

casting from int goes to byte
int anInt;
byte aByte;

// ...
...
aByte = (byte) anInt;

If integer point is even greater to be appealed range who can keep all byte, therefore Java mereduksi will go to rest for with range from byte.

purpose example:
read's function() at stream's input standard (System.in) transferring int. We get to do casting to int's type becomes char's type before storage:

char c = (char) ystem. in. read();

System.in.read's function() transferring int's point, then done by casting goes to char with (char)  char's result, that result at keeping at variable c gets char's type.

Stored size science important deep determine casting's end product. Are not all casting can save data in advance safe ala. On casting long's type becomes int long's matter 64 bit becomes int's types 32 bits. While is casting as it is done, kompilator cuts 32 long's type bit becomes int 32 bits. If point 32 above bits contain essential information therefore that information is lost. Information can also get lost while we do casting among given different types even its depositor measures with.

example:
Casting is double's number becomes long will remove fraction information so just gets a part double's round even both fairish 64 bits.

Conversion that result truncation's so-called cut.

Following table is casting that at secures its result no that lost.
Tipe Asal
Tipe Tujuan
Byte
Short, char, int, long, float, double
Short
Int, long, float,double
Char
Int, long, float.,double
Int
Long, float, double
Long
Float, double
Float
Double

download materi conversion and casting's data type

Ebook Rahasia Seni Mencetak Uang Melalui Google Adsense


download ebook rahasia seni mencetak uang lewat google adsense
download ebook rahasia seni mencetak uang lewat google adsense
password : www.informatika-linux-sharing.blogspot.com

Tak ada kata lain untuk menggambarkan bagaimana pesatnya kemajuan dalam bidang teknologi informasi, selain " Hebat dan Mengagumkan!"
 Dalam soal bisnis, mungkin 20 yahun lagi, Kang Ujang seorang pengusaha sepatu asal Cibaduyut harus memendam sedalam lautan, cita - cita supaya produknya bisa 'GO Internasional' dan bisa bersaing dengan Gucci atau Laroche.Bandingkan dengan keadaan sekarang, dengan gaya "Real Businessman" ulung, tunjuk sana, tunjuk sini di belakang kursi web desainernya, ia bisa menawarkan selop asli sunda langsung di hadapan nyonya Bush di kamarnya, atau kepada si "Material Girl" Madonna sekaligus!, ini berlangsung secara otomatis, bahkan saat Kang Ujang tidur terlelap atau sedang dugem di jalan Dago.
 Ini hanya sebuah contoh, bagaimana mengaplikasikan sebuah teknologi yang mampu merubah hidup dan gaya hidup manusia. Karena Internet adalah soal mengoptimasi dan Mengotomatisasi. Membangun usaha si internet ternyata tak sesulit yang di bayangkan. Teknologi ini ibarat telah membuka sebuah dunia baru yang penuh dengan peluang bagi siapa saja, sejauh ia tahu bagaimana cara memanfaatkannya. Tak kalah pentingnya adalah bagaimana mendapatkan sumber informasi terpecaya untuk memilih jenis usaha, mulai, mengelola dan menerapkan tips dan strategi yang tepat.
Google melalui programnya : Adsense, membuka kesempatan kepada siapa saja
untuk bermitra dan berbagi keuntungan dalam pasar periklanan yang luas dan potensial menciptakan sumber penghasilan baru yang bisa diandalkan. Jutaan orang telah mengambil peluang ini, namun hanya mereka yang menerapkan tips dan strategi yang tepat, berhasil menuai ratusan bahkan ribuan US dollar per bulan. Dengan tujuan tersebut ebook ini di terbitkan, juga sudah di sertai dengan tutorial lengkap, di sertai dengan tips dan trik yang jarang di ketahui oleh kebanyakan pengguna adsense.
download ebook di sini
password : www.informatika-linux-sharing.blogspot.com

Tutorial : Detecting browser who used by web visitor

As we know with among Navigator and Internet Explorer Netscape exists few incompatibility. Fathom a meaning available its scorpion a web page if saw by IE can perform by nicely temporary if saw by MISS rather few chaos. Or contrariwise.

You as a designer web of course it wants to get perfect web appearance, wheter regarding saw by IE and also MISS. To settle that problem actually don't peer distresses, one of the ways it is with detects browser who used by client or person that see our web. Then web page who will feature to adjust by browser that. E.g. if that is used is IE therefore that is featured is satu.html's file, meanwhile if that is used is MISS which be featured is two.html's file.

We will try to make pendeteksi browser by use of Macromedia Dreamweaver. Gone in for this following step:

1. Of Window's menu, vote for Behaviors or with presses F8.


From combo box Events For, vote for IE 4.0. Knobbed press , then chooses Check Browser.

2. Therefore will emerge window Check Browser as looked as on image beside. Herein You get to do many inlays.


If You choose Stay On This Page therefore page this is that will be featured if Your web visitor uses MISS 4.0.On the contrary on IE's part Your 4.0 has to fill it with Go To URL and on URL'S part You shall fill by web page who will be featured if the visitor use IE 4.0.

3. To apply it switch press OK. Present Nah Your web page was ready to detect browser who utilized by Your web visitor.



implicit can at downloads here

Tutorial : Making table with Macromedia Dreamwever

This stage is momentous because well-nigh all web page uses table. You won't get to make colourful web page without table element. You also can't make web page as page that be You read this without table. To make and modifies table on Dreamweaver trick it is as follows:
 (So tutorial this more maximal its result there is it is better You read article in here beforehand)

   1. Of Insert's menu, vote for Table. Or Ctrl's press + Alt + I.



      Rows   
      Columns  
      Width    
      Border  

   2. Its result is as pictured as hereunder.



   3. To substitute background's color on table, place pointer      the mouse on cell (column or the line--on image under marked by sign traverses to ruddle--) one that You will substitute its color then icon's click that lays in Properties.
      To substitute background's color is more than a line or drag pointer's column the mouse from cell the one goes to succeeding cell.

To its fledged can download here

Tutorial : Making rollover image with Macromedia Dreamwever


If You active browsing Internet of course frequent find sites that use rollover's effect image. That effect is made by use of javascript. To make that effect You shall set down that javascript code. But with Macromedia Dreamweaver's help You can make rollover image without has to set down even one row javascript code. Angered? Gone in for stage hereunder:

1.  To Dreamweaver 3, of Insert's menu, vote for Rollover Image.
     To Dreamweaver 4, of Insert's menu, vote for Interactive

Images Rollover Image. Therefore will emerge dialog box as hereunder:


Insert Rollover's dialog box image

Then content on available box one covers:

Name's image      
Original is Image
Rollover is Image
Go to URL       
download here  

Tutorial : Install binds books Advanced Guestbook's guest

link>
Book guesting to constitute ordinary facility available at one particular sites. With marks sense that guest book therefore enable visitor to give tips or just as its comment.

If You want to add book facility expect a guest on Your sites without want scriptnya's cause giddiness, You can try tens script binds books free guests of Internets. One of that just fine (one that also been utilized on this sites) is Advanced Guestbook.

To install Advanced Guestbook its trick as follows:
1.  First downloads script Advanced Guestbook erstwhile from http://www. proxy proxy. de. Then extract goes to folder in c:\Inetpub\wwwroot (if You utilize PWS). E.g. c:\Inetpub\wwwroot\guestbook.

config.inc.php's file open, then changes setting on sectioned setting's database:

/* settings's database * /

"$GB_DB[ "dbName"] = "MyGuestbook";// database name that
                                 // utilized
"$GB_DB[ "host"] = "localhost"; // host's name
"$GB_DB[ "user"] = "root"; // username
"$GB_DB[ "pass"] = ""; // password

In this example database name that will be utilized to keep guest book is MyGuesbook.
2.  By use of browser (e.g. Internet Explorer), run install.php's file. If You install Advanced Guestbook at c:\Inetpub\wwwroot\Guestbook therefore on Address bar of Internet Explorer You can insert http://localhost / guestbook / install. PHP /. Will appearance appearance as pictured as hereunder:



Since in advance we have made its database therefore click on the button Create New DB And Table. If in advance You have made MyGuestbook's table You can click on the button Create Table.
3.  If database makings process and successful table therefore will emerge order as follows:

Advanced Guestbook
---------------------------------------------------------
and Tables were created successfully's database!


Your new is database: MyGuestBook
Your is host's Mysql: localhost
Your is username's Mysql: root

Click now here to setup the guestbook admin...

Click on link "Click now here to setup the guestbook admin... "
4.  On Guestbook Administration's page, insert username and password You. First time install usernamenya is "test" and passwordnya "123" (without sign plucks).



5.  If username and password what does You insert to be right, therefore You soon input go to page g u e s t b o o k A d. m i. N. On that page You can do various setting binds books to expect a guest. E.g., General setting is utilized to manage setting common of guest book as amount of data per page, language, notifikasi's enamel etcetera.

One that more importantly is You have shortly change username and password defaultnya, to Your data security.
6.  Safe tries..........

Implicit can at downloads here

ALL INFORMATION Copyright © 2011 | Template created by O Pregador | Powered by Blogger