76 Part (Web hosting asp) II: Writing Your Own Java Programs
76 Part II: Writing Your Own Java Programs amountInAccount = amountInAccount + 1000000.00; …and make that number (1000050.22) be the new value of the amountInAccount variable. In an assignment statement, the thing being assigned a value is always on the left side of the equal sign. Understanding the Types of Values That Variables May Have Have you seen the TV commercials that make you think you re flying around among the circuits inside a computer? Pretty cool, eh? These commercials show 0s (zeros) and 1s sailing by because 0s and 1s are the only things that computers can really deal with. When you think a computer is storing the letter J, the computer is really storing 01001010. Everything inside the computer is a sequence of 0s and 1s. As every computer geek knows, a 0 or 1 is called a bit. As it turns out, the sequence 01001010, which stands for the letter J, can also stand for the number 74. The same sequence can also stand for 1.0369608636003646 10-43. In fact, if the bits are interpreted as screen pixels, the same sequence can be used to represent the dots shown in Figure 4-2. The meaning of 01001010 depends on the way the software interprets this sequence of 0s and 1s. Figure 4-2: An extreme close-up of eight blackand- white screen pixels. So how do you tell the computer what 01001010 stands for? The answer is in the concept of type. The type of a variable is the range of values that the variable is permitted to store.
Our window web hosting plans are bursting with features and FREE tools, at the very small rate. Sign up today window web hosting.