tailieunhanh - Introduction to Programming Using JavaVersion 6.0, June 2011(Version 6.0.1, with minor corrections, July 2012)
A computer is a general purpose device that can be programmed to carry out a finite set of arithmetic or logical operations. Since a sequence of operations can be readily changed, the computer can solve more than one kind of problem. | Introduction to Programming Using Java Version June 2011 Version with minor corrections July 2012 David J. Eck Hobart and William Smith Colleges This is a PDF version of an on-line book that is available at http javanotes . The PDF does not include source code files solutions to exercises or answers to quizzes but it does have external links to these resources shown in blue. In addition each section has a link to the on-line version. The PDF also has internal links shown in red. These links can be used in Acrobat Reader and some other PDF reader programs. ii @1996-2012 David J. Eck David J. Eck eck@ Department of Mathematics and Computer Science Hobart and William Smith Colleges Geneva NY 14456 This book can be distributed in unmodified form for non-commercial purposes. Modified versions can be made and distributed for non-commercial purposes provided they are distributed under the same license as the original. More specifically This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License. To view a copy of this license visit http licenses by-nc-sa . Other uses require permission from the author. The web site for this book is http javanotes Contents Preface x 1 The Mental Landscape 1 Machine Language. 1 Asynchronous Events. 3 The Java Virtual Machine. 6 Building Blocks of Programs . 8 Object-oriented Programming. 10 The Modern User Interface . 13 The Internet and Beyond . 15 Quiz on Chapter 1 . 18 2 Names and Things 19 The Basic Java Application. 19 Variables and Variables .23 Types and Literals . 24 Variables in Programs . 27 Objects and Subroutines . 28 Built-in Subroutines and Functions . 29 Operations on Strings . 33 Introduction to Enums . 35 Text Input and Output . 36 A First Text Input Example . 37 Text Output . 38 TextIO Input Functions . 39 .
đang nạp các trang xem trước