xii Java For Dummies, 4th Edition Running Java (Web hosting servers)

xii Java For Dummies, 4th Edition Running Java Programs………………………………………………………………………33 Running a text-based program……………………………………………………34 Running a GUI on its own …………………………………………………………..38 Running a GUI on a Web page (a Java applet) …………………………….41 Chapter 3: Using the Basic Building Blocks . . . . . . . . . . . . . . . . . . . . .45 Speaking the Java Language ……………………………………………………………….45 The grammar and the common names……………………………………….46 The words in a Java program……………………………………………………..47 Checking Out Java Code for the First Time …………………………………………49 Understanding a Simple Java Program………………………………………………..50 The Java class……………………………………………………………………………51 The Java method ……………………………………………………………………….52 The main method in a program………………………………………………….53 How you finally tell the computer to do something ……………………54 Curly braces………………………………………………………………………………57 And Now, a Few Comments…………………………………………………………………59 Adding comments to your code …………………………………………………60 What s Barry s excuse?………………………………………………………………63 Finding javadoc pages ……………………………………………………………….63 Using comments to experiment with your code …………………………64 Typing Your Own Code……………………………………………………………………….65 Part II: Writing Your Own Java Programs………………….71 Chapter 4: Making the Most of Variables and Their Values . . . . . . . .73 Varying a Variable ………………………………………………………………………………73 Assignment Statements………………………………………………………………………75 Understanding the Types of Values That Variables May Have……………..76 An Import Declaration………………………………………………………………………..79 Displaying Text …………………………………………………………………………………..80 Numbers without Decimal Points ……………………………………………………….80 Combining Declarations and Initializing Variables ………………………………82 The Atoms: Java s Primitive Types……………………………………………………..83 The char type…………………………………………………………………………….84 The boolean type……………………………………………………………………….86 The Molecules and Compounds: Reference Types………………………………88 Creating New Values by Applying Operators ………………………………………92 Initialize once, assign often………………………………………………………..94 The increment and decrement operators …………………………………..95 Assignment operators ……………………………………………………………….99
We know it is important decision to make, effects your wallet, and the quality of your web site, so relax and visit shared web hosting.

Leave a Reply