Introduction to Java Programming: Brief Version, 10th Edition

Introduction to Java Programming: Brief Version, 10th Edition

Language: English

Pages: 780

ISBN: 0133592200

Format: PDF / Kindle (mobi) / ePub


NOTE: You are purchasing a standalone product; MyProgrammingLab does not come packaged with this content. If you would like to purchase both the physical text and MyProgrammingLab search for ISBN-10: 0133813487 /ISBN-13: 9780133813487. That package includes ISBN-10: 0133592200/ISBN-13: 9780133592207 and ISBN-10: 0133592685 /ISBN-13:9780133592689 .

MyProgrammingLab should only be purchased when required by an instructor.

This text is intended for a 1-semester CS1 course sequence. The Brief Version contains the first 18 chapters of the Comprehensive Version. The first 13 chapters are appropriate for preparing the AP Computer Science exam. Coverage of Java and programming make this a useful reference for beginning programmers and IT professionals.

Daniel Liang teaches concepts of problem-solving and object-oriented programming using a fundamentals-first approach. Beginning programmers learn critical problem-solving techniques then move on to grasp the key concepts of object-oriented, GUI programming, advanced GUI and Web programming using Java. Liang approaches Java GUI programming using JavaFX, not only because JavaFX is much simpler for new Java programmers to learn and use but because it has replaced Swing as the new GUI tool for developing cross-platform-rich Internet applications on desktop computers, on hand-held devices, and on the Web. Additionally, for instructors, JavaFXprovides a better teaching tool for demonstrating object-oriented programming.

 

Teaching and Learning Experience

To provide a better teaching and learning experience, for both instructors and students, this program offers:

  • Fundamentals-First Approach: Basic programming concepts are introduced on control statements, loops, functions, and arrays before object-oriented programming is discussed.
  • Problem-Driven Motivation: The examples and exercises throughout the book emphasize problem solving and foster the concept of developing reusable components and using them to create practical projects.
  • A Superior Pedagogical Design that Fosters Student Interest: Key concepts are reinforced with objectives lists, introduction and chapter overviews, easy-to-follow examples, chapter summaries, review questions, programming exercises, and interactive self-tests.
  • The Most Extensive Instructor and Student Support Package Available: The author maintains a website at www.pearsonhighered.com/liang that includes multiple interactive resources.

Pro Spring 3

Programming Concurrency on the JVM: Mastering Synchronization, STM, and Actors

SCJP Sun Certified Programmer for Java 6 Exam 310-065

Java I/O, NIO and NIO.2

Java: A Beginner's Guide (6th Edition)

Hello, Android: Introducing Google's Mobile Development Platform

 

 

 

 

 

 

 

 

 

 

 

program prints Welcome to Java! */ A pair of braces in a program forms a block that groups the program’s components. In Java, each block begins with an opening brace ({) and ends with a closing brace (}). Every class has a class block that groups the data and methods of the class. Every method has a method block 12 Chapter 1 Introduction to Computers, Programs, and Java block that groups the statements in the method. Blocks can be nested, meaning that one block can be placed within another,

.java extension. 24. Every class is compiled into a separate bytecode file that has the same name as the class and ends with the .class extension. 25. To compile a Java source-code file from the command line, use the javac command. 26. To run a Java class from the command line, use the java command. 27. Every Java program is a set of class definitions. The keyword class introduces a class definition. The contents of the class are included in a block. 28. A block begins with an opening brace ({)

and ends with a closing brace (}). Methods are contained in a class. 29. A Java program must have a main method. The main method is the entry point where the program starts when it is executed. 30. Every statement in Java ends with a semicolon (;), known as the statement terminator. 31. Reserved words, or keywords, have a specific meaning to the compiler and cannot be used for other purposes in the program. 32. In Java, comments are preceded by two slashes (//) on a line, called a line

table: a 1 2 3 4 1.5 A A A AAAAA A A a^2 1 4 9 16 a^3 1 8 27 64 (Computing expressions) Write a program that displays the result of 9.5 * 4.5 - 2.5 * 3 . 45.5 - 3.5 level of difficulty 22 Chapter 1 Introduction to Computers, Programs, and Java 1.6 1.7 (Summation of a series) Write a program that displays the result of 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9. (Approximating p) p can be computed using the following formula: p = 4 * a1 - 1 1 1 1 1 1 + - + + + Áb 3 5 7 9 11 13 1 1 1 Write a

respective parameters in the method signature. This is known as parameter order association. For example, the following method prints a message n times: public static void nPrintln(String message, int n) { for (int i = 0; i < n; i++) System.out.println(message); } You can use nPrintln("Hello", 3) to print "Hello" three times. The nPrintln("Hello", 3) statement passes the actual string parameter "Hello" to the parameter message; passes 3 to n; 5.5 Passing Parameters by Values 163 and prints

Download sample

Download