LEADER 12577nam 2200649 450 001 9910150241103321 005 20230725023836.0 010 $a1-282-64548-X 010 $a9786612645488 010 $a0-273-73123-8 035 $a(CKB)2670000000032240 035 $a(SSID)ssj0000438482 035 $a(PQKBManifestationID)12175278 035 $a(PQKBTitleCode)TC0000438482 035 $a(PQKBWorkID)10452100 035 $a(PQKB)11104506 035 $a(MiAaPQ)EBC5173953 035 $a(MiAaPQ)EBC5175318 035 $a(MiAaPQ)EBC5833778 035 $a(MiAaPQ)EBC5137299 035 $a(MiAaPQ)EBC6400738 035 $a(Au-PeEL)EBL5137299 035 $a(OCoLC)1015884728 035 $a(EXLCZ)992670000000032240 100 $a20190827d2010 uy 0 101 0 $aeng 135 $aurcnu|||||||| 181 $ctxt 182 $cc 183 $acr 200 10$aJava for students /$fDouglas Bell, Mike Parr 205 $aSixth edition. 210 1$aHarlow, England :$cPrentice Hall,$d[2010] 210 4$dİ2010 215 $a1 online resource (534 pages) $ccolor illustrations 300 $aBibliographic Level Mode of Issuance: Monograph 311 $a0-273-73122-X 320 $aIncludes bibliographical references and index. 327 $aCover -- Java for Students -- Contents -- Detailed contents -- Introduction -- Guided tour -- The background to Java -- The history of Java -- The main features of Java -- What is a program? -- Programming principles -- Programming pitfalls -- Summary -- Exercises -- Answers to self-test questions -- First programs -- Introduction -- Integrated development environments -- Files and folders -- Creating a Java program -- The libraries -- Demystifying the program -- Objects, methods: an introduction -- Classes: an analogy -- Using a text field -- Programming principles -- Programming pitfalls -- Grammar spot -- New language elements -- Summary -- Exercises -- Answers to self-test questions -- Using graphics methods -- Introduction -- Events -- The button-click event -- The graphics coordinate system -- Explanation of the program -- Methods for drawing -- Drawing with colours -- Creating a new program -- The sequence concept -- Adding meaning with comments -- Programming principles -- Programming pitfalls -- Grammar spot -- New language elements -- Summary -- Exercises -- Answers to self-test questions -- Variables and calculations -- Introduction -- The nature of int -- The nature of double -- Declaring variables -- The assignment statement -- Calculations and operators -- The arithmetic operators -- The % operator -- Joining strings with the + operator -- Converting between strings and numbers -- Message dialogs and input dialogs -- Formatting text in dialogs with \n -- Converting between numbers -- Constants: using final -- The role of expressions -- Programming principles -- Programming pitfalls -- Grammar spot -- New language elements -- Summary -- Exercises -- Answers to self-test questions -- Methods and parameters -- Introduction -- Writing your own methods -- A first method -- Calling a method -- Passing parameters. 327 $aFormal and actual parameters -- A triangle method -- Local variables -- Name clashes -- Event-handling methods and main -- return and results -- Building on methods: drawHouse -- Building on methods: areaHouse -- this and objects -- Overloading -- Programming principles -- Programming pitfalls -- Grammar spot -- New language elements -- Summary -- Exercises -- Answers to self-test questions -- Using objects -- Introduction -- Instance variables -- Instantiation: using constructors with new -- The Random class -- The main method and new -- The Swing toolkit -- Events -- Creating a JButton -- Guidelines for using objects -- The JLabel class -- The JTextField class -- The JPanel class -- The Timer class -- The JSlider class -- The ImageIcon class - moving an image -- Programming principles -- Programming pitfalls -- Grammar spot -- New language elements -- Summary -- Exercises -- Answers to self-test questions -- Selection -- Introduction -- The if statement -- if...else -- Comparison operators -- Multiple events -- And, or, not -- Nested ifs -- switch -- Boolean variables -- Comparing strings -- Programming principles -- Programming pitfalls -- Grammar spot -- New language elements -- Summary -- Exercises -- Answers to self-test questions -- Repetition -- Introduction -- while -- for -- And, or, not -- do...while -- Nested loops -- Combining control structures -- Programming principles -- Programming pitfalls -- Grammar spot -- New language elements -- Summary -- Exercises -- Answers to self-test questions -- Writing classes -- Introduction -- Designing a class -- Classes and files -- private variables -- public methods -- The get and set methods -- Constructors -- Multiple constructors -- private methods -- Scope rules -- Operations on objects -- Object destruction -- static methods -- static variables -- Programming principles -- Programming pitfalls. 327 $aGrammar spot -- New language elements -- Summary -- Exercises -- Answers to self-test questions -- Inheritance -- Introduction -- Using inheritance -- protected -- Scope rules -- Additional items -- Overriding -- Class diagrams -- Inheritance at work -- super -- Constructors -- final -- Abstract classes -- Programming principles -- Programming pitfalls -- New language elements -- Summary -- Exercises -- Answers to self-test questions -- Calculations -- Introduction -- Library mathematical functions and constants -- Formatting numbers -- Case study - money -- Case study - iteration -- Graphs -- Exceptions -- Programming principles -- Programming pitfalls -- Summary -- Exercises -- Answer to self-test question -- Array lists -- Introduction -- Creating an array list and generics -- Adding items to a list -- The length of a list -- Indices -- Displaying an array list -- The enhanced for statement -- Using index values -- Removing items from an array list -- Inserting items within an array list -- Lookup -- Arithmetic on an array list -- Searching -- Programming principles -- Programming pitfalls -- New language elements -- Summary -- Exercises -- Answers to self-test questions -- Arrays -- Introduction -- Creating an array -- Indices -- The length of an array -- Passing arrays as parameters -- The enhanced for statement -- Using constants with arrays -- Initializing an array -- A sample program -- Lookup -- Searching -- Arrays of objects -- Programming principles -- Programming pitfalls -- Grammar spot -- Summary -- Exercises -- Answers to self-test questions -- Arrays - two dimensional -- Introduction -- Declaring an array -- Indices -- The size of an array -- Passing arrays as parameters -- Using constants with two-dimensional arrays -- Initializing an array -- A sample program -- Programming principles -- Programming pitfalls -- Summary -- Exercises. 327 $aAnswers to self-test questions -- String manipulation -- Introduction -- Using strings - a recap -- The characters within strings -- A note on the char type -- The String class -- The String class methods -- Comparing strings -- Amending strings -- Examining strings -- String conversions -- String parameters -- An example of string processing -- String case study - Frasier -- Programming principles -- Programming pitfalls -- Grammar spot -- New language elements -- Summary -- Exercises -- Answer to self-test question -- Exceptions -- Introduction -- Exceptions and objects -- When to use exceptions -- The jargon of exceptions -- A try-catch example -- try and scopes -- The search for a catcher -- Throwing - an introduction -- Exception classes -- Compilation and checked exceptions -- Catching - the common cases -- Using the exception class structure -- Programming principles -- Programming pitfalls -- Grammar spot -- New language elements -- Summary -- Exercises -- Answers to self-test questions -- Files and console applications -- Introduction -- File access: stream or random? -- The essentials of streams -- The Java I/O classes -- The BufferedReader and PrintWriter classes -- File output -- File input -- File searching -- The File class -- The JFileChooser class -- Console I/O -- The System class -- Using JOptionPane -- A console example: Finder -- Reading from a remote site -- Command-line arguments -- Programming principles -- Programming pitfalls -- Grammar spot -- New language elements -- Summary -- Exercises -- Answers to self-test questions -- Object-oriented design -- Introduction -- The design problem -- Identifying objects and methods -- Case study in design -- Looking for reuse -- Composition or inheritance? -- Guidelines for class design -- Summary -- Exercises -- Answers to self-test questions -- Program style -- Introduction. 327 $aProgram layout -- Names -- Classes -- Comments -- Javadoc -- Constants -- Methods -- Nested ifs -- Nested loops -- Complex conditions -- Documentation -- Consistency -- Programming pitfalls -- Summary -- Exercises -- Testing -- Introduction -- Program specifications -- Exhaustive testing -- Black box (functional) testing -- White box (structural) testing -- Inspections and walkthroughs -- Stepping through code -- Incremental development -- Programming principles -- Summary -- Exercises -- Answers to self-test questions -- Debugging -- Introduction -- Debugging without a debugger -- Using a debugger -- Common errors - compilation errors -- Common errors - run-time errors -- Common errors - logic errors -- Common errors - misunderstanding the language -- Summary -- Answer to self-test question -- Threads -- Introduction -- Threads -- Starting a thread -- Thread dying -- join -- The state of a thread -- Scheduling, thread priorities and yield -- Programming principles -- Summary -- Exercises -- Answers to self-test questions -- Interfaces -- Introduction -- Interfaces for design -- Interfaces and interoperability -- Interfaces and the Java library -- Multiple interfaces -- Interfaces versus abstract classes -- Programming principles -- Programming pitfalls -- Grammar spot -- New language elements -- Summary -- Exercises -- Answers to self-test questions -- Programming in the large - packages -- Introduction -- Using classes and the import statement -- Creating packages using the package statement -- Packages, files and folders -- Scope rules -- The Java library packages -- Programming pitfalls -- New language elements -- Summary -- Exercise -- Answers to self-test questions -- Polymorphism -- Introduction -- Polymorphism in action -- Programming principles -- Programming pitfalls -- New language elements -- Summary -- Exercises -- Java in context. 327 $aIntroduction. 330 $aThis book is for novicesIf you have never done any programming before - if you are a complete novice - this book is for you. This book assumes no prior knowledge of programming. It starts from scratch. It is written in a simple, direct style for maximum clarity. It is aimed at first level students at universities and colleges, but it is also suitable for novices studying alone.The approach of this bookWe explain how to use objects early in this book. Our approach is to start with the ideas of variables, assignment and methods, then introduce the use of objects created from library classes. Next we explain how to use control structures for selection and looping. Then comes the treatment of how to write your own classes. We wanted to make sure that the fun element of programming was paramount, so we use graphics right from the start. We think graphics is fun, interesting and clearly demonstrates all the important principles of programming. But we haven't ignored programs that input and output text - they are also included. The programs we present use many of the features of a graphical user interfaces (GUIs), such as buttons, scroll bars and text boxes. But we also explain how to write console programs in Java. We introduce new ideas carefully one-at-a-time, rather than all at once. So, for example, there is a single chapter on writing methods. We introduce simple ideas early and more sophisticated ideas later on. . 606 $aJava (Computer program language) 615 0$aJava (Computer program language) 676 $a005.13/3 700 $aBell$b Doug$f1944-$0771859 702 $aParr$b Mike$f1949- 801 0$bMiAaPQ 801 1$bMiAaPQ 801 2$bMiAaPQ 906 $aBOOK 912 $a9910150241103321 996 $aJava for students$93402330 997 $aUNINA