1 Introduction To Computers, The Internet And Java 2 Introduction To Java Applications; Input/output And Operators 3 Introduction To Classes, Objects, Methods And Strings 4 Control Statements: Part 1; Assignment, ++ And -- Operators 5 Control Statements: Part 2; Logical Operators 6 Methods: A Deeper Look 7 Arrays And Arraylists 8 Classes And Objects: A Deeper Look 9 Object-oriented Programming: Inheritance 10 Object-oriented Programming: Polymorphism And Interfaces 11 Exception Handling: A Deeper Look 12 Javafx Graphical User Interfaces: Part 1 13 Javafx Gui: Part 2 14 Strings, Characters And Regular Expressions 15 Files, Input/output Streams, Nio And Xml Serialization 16 Generic Collections 17 Lambdas And Streams 18 Recursion 19 Searching, Sorting And Big O 20 Generic Classes And Methods: A Deeper Look 21 Custom Generic Data Structures 22 Javafx Graphics And Multimedia 23 Concurrency 24 Accessing Databases With Jdbc 25 Introduction To Jshell: Java 9’s Repl expand_more
Chapter Questions expand_more
Problem 1.1SRE: Fill in the blanks in each of the following statements: A(n)and a(n)begin and end the body of every... Problem 1.2SRE: Fill in the blanks in each of the following statements: You can use the statement to make decisions. Problem 1.3SRE: Fill in the blanks in each of the following statements: begins an end-of-line comment. Problem 1.4SRE: Fill in the blanks in each of the following statements: ,andare called white space. Problem 1.5SRE: Fill in the blanks in each of the following statements: are reserved for use by Java. Problem 1.6SRE: Fill in the blanks in each of the following statements: Java applications begin execution at method Problem 1.7SRE Problem 2.1SRE: State whether each of the following is true or false. If false, explain why. Comments cause the... Problem 2.2SRE: State whether each of the following is true or false. If false, explain why. All variables must be... Problem 2.3SRE: State whether each of the following is true or false. If false, explain why. Java considers the... Problem 2.4SRE: State whether each of the following is true or false. If false, explain why. The remainder operator... Problem 2.5SRE: State whether each of the following is true or false. If false, explain why. The arithmetic... Problem 2.6SRE Problem 3.1SRE: Write statements to accomplish each of the following tasks: Declare variables c, thisIsAVariable,... Problem 3.2SRE: Write statements to accomplish each of the following tasks: Prompt the user to enter an integer. Problem 3.3SRE: Write statements to accomplish each of the following tasks: Input an integer and assign the result... Problem 3.4SRE Problem 3.5SRE Problem 3.6SRE: Write statements to accomplish each of the following tasks: If the variable number is not equal to... Problem 4.1SRE Problem 4.2SRE: Identify and correct the errors in each of the following statements: if (c = 7) {... Problem 5.1SRE: Write declarations, statements or comments that accomplish each of the following tasks: State that a... Problem 5.2SRE: Write declarations, statements or comments that accomplish each of the following tasks: Create a... Problem 5.3SRE: Write declarations, statements or comments that accomplish each of the following tasks: Prompt the... Problem 5.4SRE: Write declarations, statements or comments that accomplish each of the following tasks: Read the... Problem 5.5SRE: Write declarations, statements or comments that accomplish each of the following tasks: Prompt the... Problem 5.6SRE: Write declarations, statements or comments that accomplish each of the following tasks: Read the... Problem 5.7SRE: Write declarations, statements or comments that accomplish each of the following tasks: Prompt the... Problem 5.8SRE: Write declarations, statements or comments that accomplish each of the following tasks: Read the... Problem 5.9SRE: Write declarations, statements or comments that accomplish each of the following tasks: Compute the... Problem 5.10SRE: Write declarations, statements or comments that accomplish each of the following tasks: Use... Problem 6.1SRE: Using the statements you wrote in Exercise 2.5, write a complete program that calculates and prints... Problem 1.1E: Fill in the blanks in each of the following statements: are used to document a program and improve... Problem 1.2E: Fill in the blanks in each of the following statements: A decision can be made in a Java program... Problem 1.3E: Fill in the blanks in each of the following statements: The arithmetic operators with the same... Problem 1.4E Problem 1.5E: Fill in the blanks in each of the following statements: A location in the computers memory that may... Problem 2.1E: Write Java statements that accomplish each of the following tasks: Display the message "Enter an... Problem 2.2E: Write Java statements that accomplish each of the following tasks: Assign the product of variables b... Problem 2.3E: Write Java statements that accomplish each of the following tasks: Use a comment to state that a... Problem 3.1E Problem 3.2E: State whether each of the following is true or false. If false, explain why. The following are all... Problem 3.3E: State whether each of the following is true or false. If false, explain why. A valid Java arithmetic... Problem 3.4E: State whether each of the following is true or false. If false, explain why. The following are all... Problem 4.1E: Assuming that x = 2 and y = 3, what does each of the following statements display?... Problem 4.2E: Assuming that x = 2 and y = 3, what does each of the following statements display?... Problem 4.3E: Assuming that x = 2 and y = 3, what does each of the following statements display?... Problem 4.4E Problem 5.1E Problem 5.2E: Which of the following Java statements contain variables whose values are modified?... Problem 5.3E Problem 5.4E: Which of the following Java statements contain variables whose values are modified? int value =... Problem 6.1E: Given that y=ax3+7, which of the following are correct Java statements for this equations? int y = a... Problem 6.2E: Given that y=ax3+7, which of the following are correct Java statements for this equations? int y = a... Problem 6.3E: Given that y=ax3+7, which of the following are correct Java statements for this equations? int y =... Problem 6.4E: Given that y=ax3+7, which of the following are correct Java statements for this equations? int y =... Problem 6.5E: Given that y=ax3+7, which of the following are correct Java statements for this equations? int y = a... Problem 6.6E: Given that y=ax3+7, which of the following are correct Java statements for this equations? int y = a... Problem 7.1E: State the order of evaluation of the operators in each of the following Java statements, and show... Problem 7.2E Problem 7.3E: State the order of evaluation of the operators in each of the following Java statements, and show... Problem 8.1E: Display the message "Enter an integer: ", leaving the cursor on the same line. Problem 8.2E: Assign the product of variables b and c to the int variable a. Problem 8.3E: Use a comment to state that a program performs a sample payroll calculation. Problem 9.1E Problem 10.1E: (Comparing Integers) Write an application that asks the user to enter two integers, obtains them... Problem 11.1E: Which of the following Java statements contain variables whose values are modified? 1. int p = i + j... Problem 12.1E: Given that y = ax3 + 7, which of the following are correct Java statements for this equation? 1. int... Problem 13.1E: State the order of evaluation of the operators in each of the following Java statements, and show... Problem 14.1E: What does the following code print? System.out.println(""); System.out.println("");... Problem 15.1E: What does the following code print? System.out.print(""); System.out.print("");... Problem 16.1E: What does the following code print? System.out.print(""); System.out.println("");... Problem 17.1E: What does the following code print? System.out.printf("%s%n%s%n%s%n", "", "", ""); Problem 18.1E: (Largest and Smallest Integers) Write an application that reads five integers and determines and... Problem 19.1E: (Odd or Even) Write an application that reads an integer and determines and prints whether its odd... Problem 20.1E: Write an application that reads two integers, determines whether the first is a multiple of the... Problem 21.1E: Write an application that displays a checkerboard pattern, as follows: Problem 22.1E: Circumference and Area of a Circle) Heres a peek ahead. In this chapter, you learned about integers... Problem 23.1E: (Integer Value of a Character) Heres another peek ahead. In this chapter, you learned about integers... Problem 24.1E: (Separating the Digits in an Integer) Write an application that inputs one number consisting of five... Problem 25.1E Problem 26.1E Problem 1MD: (Body Mass Index Calculator) We introduced the body mass index (BMI) calculator in Exercise 1.10.... Problem 2MD: (World Population Growth Calculator) Search the Internet to determine the current world population... format_list_bulleted