⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ewtoc.html

📁 Java_by_Example,初级经典例子哦,珍藏版本
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<LI><A HREF="ch8.htm#OrderofOperations">Order of Operations</A><LI><A HREF="ch8.htm#Summary">Summary</A><LI><A HREF="ch8.htm#ReviewQuestions">Review Questions</A><LI><A HREF="ch8.htm#ReviewExercises">Review Exercises</A></UL><A HREF="ch9.htm"><b>Chapter 9:</b> The if and switch Statements</A><UL><LI><A HREF="ch9.htm#ControllingProgramFlow">Controlling Program Flow</A><LI><A HREF="ch9.htm#ProgramFlowandBranching">Program Flow and Branching</A><LI><A HREF="ch9.htm#TheIifIstatement">The <I>if</I> statement</A><UL><LI><A HREF="ch9.htm#ExampleTheFormofanIifIStatement">Example: The Form of an <I>if</I> Statement</A><LI><A HREF="ch9.htm#MultipleIifIStatements">Multiple <I>if</I> Statements</A><LI><A HREF="ch9.htm#MultipleLineIifIStatements">Multiple-Line <I>if</I> Statements</A><LI><A HREF="ch9.htm#TheIelseIClause">The <I>else</I> Clause</A><LI><A HREF="ch9.htm#ExampleUsingtheIifIStatementinaProgram">Example: Using the <I>if</I> Statement in a Program</A></UL><LI><A HREF="ch9.htm#TheIswitchIStatement">The <I>switch</I> Statement</A><UL><LI><A HREF="ch9.htm#ExampleUsingtheIbreakIStatementCorrectly">Example: Using the <I>break</I> Statement Correctly</A><LI><A HREF="ch9.htm#ExampleUsingtheIswitchIStatementinaProgram">Example: Using the <I>switch</I> Statement in a Program</A></UL><LI><A HREF="ch9.htm#Summary">Summary</A><LI><A HREF="ch9.htm#ReviewQuestions">Review Questions</A><LI><A HREF="ch9.htm#ReviewExercises">Review Exercises</A></UL><A HREF="ch10.htm"><b>Chapter 10:</b> The while and do-while Loops</A><UL><LI><A HREF="ch10.htm#TheIwhileILoop">The <I>while</I> Loop</A><UL><LI><A HREF="ch10.htm#ExampleUsingaIwhileILoop">Example: Using a <I>while</I> Loop</A><LI><A HREF="ch10.htm#ExampleUsingaIwhileILoopinaProgram">Example: Using a <I>while</I> Loop in a Program</A></UL><LI><A HREF="ch10.htm#TheIdowhileILoop">The <I>do-while</I> Loop</A><UL><LI><A HREF="ch10.htm#ExampleUsingaIdowhileILoop">Example: Using a <I>do-while</I> Loop</A><LI><A HREF="ch10.htm#ExampleUsingaIdowhileILoopinaProgram">Example: Using a <I>do-while</I> Loop in a Program</A></UL><LI><A HREF="ch10.htm#Summary">Summary</A><LI><A HREF="ch10.htm#ReviewQuestions">Review Questions</A><LI><A HREF="ch10.htm#ReviewExercises">Review Exercises</A></UL><A HREF="ch11.htm"><b>Chapter 11:</b> The for Loop</A><UL><LI><A HREF="ch11.htm#IntroducingtheIforILoop">Introducing the <I>for</I> Loop</A><LI><A HREF="ch11.htm#ExampleUsingaIforILoop">Example: Using a <I>for</I> Loop</A><LI><A HREF="ch11.htm#ExampleUsingaIforILoopinaProgram">Example: Using a <I>for</I> Loop in a Program</A><LI><A HREF="ch11.htm#ChangingtheIncrementValue">Changing the Increment Value</A><LI><A HREF="ch11.htm#ExampleLoopingwithDifferentIncrements">Example: Looping with Different Increments</A><LI><A HREF="ch11.htm#UsingVariablesinLoops">Using Variables in Loops</A><LI><A HREF="ch11.htm#ExampleControllingIforILoopswithVariables">Example: Controlling <I>for</I> Loops with Variables</A><LI><A HREF="ch11.htm#Summary">Summary</A><LI><A HREF="ch11.htm#ReviewQuestions">Review Questions</A><LI><A HREF="ch11.htm#ReviewExercises">Review Exercises</A></UL><A HREF="ch12.htm"><b>Chapter 12:</b> Functions</A><UL><LI><A HREF="ch12.htm#TheTopDownApproachtoProgramming">The Top-Down Approach to Programming</A><LI><A HREF="ch12.htm#ExampleUsingFunctionsasSubroutines">Example: Using Functions as Subroutines</A><LI><A HREF="ch12.htm#DefiningandCallingFunctions">Defining and Calling Functions</A><LI><A HREF="ch12.htm#ExampleUsingFunctionstoReturnValues">Example: Using Functions to Return Values</A><LI><A HREF="ch12.htm#ExamplePuttingFunctionstoWork">Example: Putting Functions to Work</A><LI><A HREF="ch12.htm#Summary">Summary</A><LI><A HREF="ch12.htm#ReviewQuestions">Review Questions</A><LI><A HREF="ch12.htm#ReviewExercises">Review Exercises</A></UL><A HREF="ch13.htm"><b>Chapter 13:</b> Arrays</A><UL><LI><A HREF="ch13.htm#AnIntroductiontoArrays">An Introduction to Arrays</A><UL><LI><A HREF="ch13.htm#ExampleCreatinganArray">Example: Creating an Array</A><LI><A HREF="ch13.htm#ExampleUsingaVariableasaSubscript">Example: Using a Variable as a Subscript</A></UL><LI><A HREF="ch13.htm#MultidimensionalArrays">Multidimensional Arrays</A><UL><LI><A HREF="ch13.htm#ExampleCreatingaTwoDimensionalArray">Example: Creating a Two-Dimensional Array</A></UL><LI><A HREF="ch13.htm#ExampleUsingTwoDimensionalArraysinanApplet">Example: Using Two-Dimensional Arrays in an Applet</A><LI><A HREF="ch13.htm#Summary">Summary</A><LI><A HREF="ch13.htm#ReviewQuestions">Review Questions</A><LI><A HREF="ch13.htm#ReviewExercises">Review Exercises</A></UL><A HREF="ch14.htm"><b>Chapter 14:</b> Classes</A><UL><LI><A HREF="ch14.htm#ClassesandObjects">Classes and Objects</A><UL><LI><A HREF="ch14.htm#DefiningaSimpleClass">Defining a Simple Class</A><LI><A HREF="ch14.htm#DeclaringFieldsforaClass">Declaring Fields for a Class</A><LI><A HREF="ch14.htm#DefiningaConstructor">Defining a Constructor</A><LI><A HREF="ch14.htm#ExampleCreatinganObjectbyCallingaConstructor">Example: Creating an Object by Calling a Constructor</A><LI><A HREF="ch14.htm#DefiningMethods">Defining Methods</A></UL><LI><A HREF="ch14.htm#ExampleUsingClassesinApplets">Example: Using Classes in Applets</A><LI><A HREF="ch14.htm#UnderstandingtheApplet">Understanding the Applet</A><LI><A HREF="ch14.htm#UsingInheritance">Using Inheritance</A><UL><LI><A HREF="ch14.htm#CreatingaSubclass">Creating a Subclass</A><LI><A HREF="ch14.htm#AddingFieldsandMethodstotheSubclass">Adding Fields and Methods to the Subclass</A><LI><A HREF="ch14.htm#ExampleAddingFieldsandMethods">Example: Adding Fields and Methods</A></UL><LI><A HREF="ch14.htm#ExampleUsingaSubclassinaProgram">Example: Using a Subclass in a Program</A><LI><A HREF="ch14.htm#OverridingMethodsoftheSuperclass">Overriding Methods of the Superclass</A><LI><A HREF="ch14.htm#TheIthisIKeyword">The <I>this</I> Keyword</A><LI><A HREF="ch14.htm#Summary">Summary</A><LI><A HREF="ch14.htm#ReviewQuestions">Review Questions</A><LI><A HREF="ch14.htm#ReviewExercises">Review Exercises</A></UL><A HREF="ch15.htm"><b>Chapter 15:</b> Writing a Simple Applet</A><UL><LI><A HREF="ch15.htm#TheSimplestJavaApplet">The Simplest Java Applet</A><LI><A HREF="ch15.htm#TheFiveStagesofanAppletsLifeCycle">The Five Stages of an Applet's Life Cycle</A><LI><A HREF="ch15.htm#ExampleOverridingtheLifeCycleMethods">Example: Overriding the Life Cycle Methods</A><LI><A HREF="ch15.htm#Summary">Summary</A><LI><A HREF="ch15.htm#ReviewQuestions">Review Questions</A><LI><A HREF="ch15.htm#ReviewExercises">Review Exercises</A></UL><A HREF="ch16.htm"><b>Chapter 16:</b> Drawing Graphics</A><UL><LI><A HREF="ch16.htm#TheAppletsCanvas">The Applet's Canvas</A><LI><A HREF="ch16.htm#ExampleUsingtheCoordinateSystem">Example: Using the Coordinate System</A><LI><A HREF="ch16.htm#DrawingShapes">Drawing Shapes</A><LI><A HREF="ch16.htm#ExampleDrawingaRectangle">Example: Drawing a Rectangle</A><LI><A HREF="ch16.htm#ExampleDrawingOtherShapes">Example: Drawing Other Shapes</A><LI><A HREF="ch16.htm#UnderstandingtheShapeAppletApplet">Understanding the ShapeApplet Applet</A><UL><LI><A HREF="ch16.htm#DrawingOvals">Drawing Ovals</A><LI><A HREF="ch16.htm#DrawingArcs">Drawing Arcs</A><LI><A HREF="ch16.htm#ExampleDrawingArcsinanApplet">Example: Drawing Arcs in an Applet</A><LI><A HREF="ch16.htm#DrawingPolygons">Drawing Polygons</A></UL><LI><A HREF="ch16.htm#Summary">Summary</A><LI><A HREF="ch16.htm#ReviewQuestions">Review Questions</A><LI><A HREF="ch16.htm#ReviewExercises">Review Exercises</A></UL><A HREF="ch17.htm"><b> Chapter 17:</b> Graphical Text</A><UL><LI><A HREF="ch17.htm#DealingwithGraphicalText">Dealing with Graphical Text</A><UL><LI><A HREF="ch17.htm#GettingFontAttributes">Getting Font Attributes</A><LI><A HREF="ch17.htm#ExampleDisplayingFontInformation">Example: Displaying Font Information</A><LI><A HREF="ch17.htm#GettingFontMetrics">Getting Font Metrics</A><LI><A HREF="ch17.htm#ExampleDisplayingFontMetrics">Example: Displaying Font Metrics</A></UL><LI><A HREF="ch17.htm#CreatingFonts">Creating Fonts</A><UL><LI><A HREF="ch17.htm#ExampleCreatingaFontwithMultipleStyles">Example: Creating a Font with Multiple Styles</A><LI><A HREF="ch17.htm#UsingtheFont">Using the Font</A><LI><A HREF="ch17.htm#ExampleDisplayingDifferentSizedFonts">Example: Displaying Different Sized Fonts</A></UL><LI><A HREF="ch17.htm#Summary">Summary</A><LI><A HREF="ch17.htm#ReviewQuestions">Review Questions</A><LI><A HREF="ch17.htm#ReviewExercises">Review Exercises</A></UL><A HREF="ch18.htm"><b>Chapter 18:</b> Label and Button Controls</A><UL><LI><A HREF="ch18.htm#Labels">Labels</A><UL><LI><A HREF="ch18.htm#ExampleCreatingaLabel">Example: Creating a Label</A><LI><A HREF="ch18.htm#MethodsoftheLabelClass">Methods of the Label Class</A></UL><LI><A HREF="ch18.htm#Buttons">Buttons</A><UL><LI><A HREF="ch18.htm#ExampleAddingaButtontoanApplet">Example: Adding a Button to an Applet</A><LI><A HREF="ch18.htm#HandlingMultipleButtonEvents">Handling Multiple-Button Events</A><LI><A HREF="ch18.htm#ExampleHandlingMultipleButtonsinanApplet">Example: Handling Multiple Buttons in an Applet</A></UL><LI><A HREF="ch18.htm#Summary">Summary</A><LI><A HREF="ch18.htm#ReviewQuestions">Review Questions</A><LI><A HREF="ch18.htm#ReviewExercises">Review Exercises</A></UL><A HREF="ch19.htm"><b>Chapter 19:</b> Checkbox and TextField Controls</A><UL><LI><A HREF="ch19.htm#Checkboxes">Checkboxes</A><UL><LI><A HREF="ch19.htm#ExampleCreatingNonexclusiveCheckboxes">Example: Creating Nonexclusive Checkboxes</A><LI><A HREF="ch19.htm#CheckboxGroups">Checkbox Groups</A><LI><A HREF="ch19.htm#ICheckboxIMethods"><I>Checkbox</I> Methods</A><LI><A HREF="ch19.htm#ExampleHandlingCheckboxesinanApplet">Example: Handling Checkboxes in an Applet</A><LI><A HREF="ch19.htm#RespondingtoaCheckboxEvent">Responding to a Checkbox Event</A><LI><A HREF="ch19.htm#ExampleHandlingCheckboxEventsinanApplet">Example: Handling Checkbox Events in an Applet</A></UL><LI><A HREF="ch19.htm#TextFields">TextFields</A><UL><LI><A HREF="ch19.htm#ITextFieldIMethods"><I>TextField</I> Methods</A><LI><A HREF="ch19.htm#ExampleUsingEchoCharacters">Example: Using Echo Characters</A></UL><LI><A HREF="ch19.htm#Summary">Summary</A><LI><A HREF="ch19.htm#ReviewQuestions">Review Questions</A><LI><A HREF="ch19.htm#ReviewExercises">Review Exercises</A></UL><A HREF="ch20.htm"><b>Chapter 20:</b> Choice Menu, Text Area, and ScrollingList Controls</A><UL><LI><A HREF="ch20.htm#ChoiceMenus">Choice Menus</A><UL><LI><A HREF="ch20.htm#ExampleCreatingaChoiceMenu">Example: Creating a Choice Menu</A><LI><A HREF="ch20.htm#ChoiceMenuMethods">Choice Menu Methods</A><LI><A HREF="ch20.htm#ExampleRespondingtoMenuEventsinanApplet">Example: Responding to Menu Events in an Applet</A></UL><LI><A HREF="ch20.htm#ScrollingLists">Scrolling Lists</A><UL><LI><A HREF="ch20.htm#ExampleCreatingaSingleSelectionList">Example: Creating a Single-Selection List</A>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -