Coder Social home page Coder Social logo

harrydulaney / intro-to-java-programming Goto Github PK

View Code? Open in Web Editor NEW
283.0 6.0 88.0 62.28 MB

Solutions to Introduction to Java Programming by Y. Daniel Liang. 10th Edition

Home Page: https://harrydulaney.github.io/intro-to-java-programming/

Java 92.53% Roff 7.40% HTML 0.07%
java-programming java textbook-exercises learnjava computer-science exercise-solutions core-java learning-java programming-exercises algorithms-and-data-structures

intro-to-java-programming's Introduction

INTRODUCTION TO JAVA PROGRAMMING 10TH EDITION
Exercise Solutions

header-img-book-cover

I've included links below to all the freely accessible companion material and quick links to navigate through my solutions by chapter.

See Contribution Guide for coding guidelines and information on how to contribute.


- About the 10th Edition -

"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..."


Companion Content

Additional online learning material that came with the books

How to Contribute

Coding Guidelines

  • Solution must use Java 8 SE, as this is the version used by the book.

    • Every solution should have a java file containing a public main method for testing it.

    • Naming convention is: ExerciseCC_EE.java where CC is the chapter number and EE is the exercise number.

    • The public Exercise class containing the main method must include a JavaDoc comment on the class with original exercise question.

    • Each solution should be its own self-contained program with minimal dependencies on other files. If you need multiple files please create a package for the exercise.

      • ch_XX/exercise22_07/Exercise22_07.java

      • This allows us to utilize the Exercise Checking Tool Exercise Checking Tool to verify solutions.

  • Example exercise solution:

package ch_01;

/**
 * 1.1 (Display three messages) Write a program that displays Welcome to Java,
 * Welcome to Computer Science, and Programming is fun.
 */
public class Exercise01_01 {
    public static void main(String[] args) {
        System.out.println("Welcome to Java");
        System.out.println("Welcome to Computer Science");
        System.out.println("Programming is fun");
    }

}

Pull requests:

  • When to use Pull Requests

    • To add new solutions, that do not already exist.
    • To add new documentation and/or comments to existing exercise solutions.
  • How to use Pull Requests

    1. Fork the Master branch
    2. Create a feature branch (with a descriptive name) using the fork from step 1.
    3. Make your changes to your new branch (Only commit and push the files you plan to merge).
    4. Make a Pull Request into our intro-to-java-programming Master branch.

Issue's:

  • Please feel free to open new Issues.
    • To request a specific Exercise that you need answered.
      • Be sure to include the Chapter and Exercise number.
    • To request a change to an existing solution.
    • You find an error in an existing solution.

Exercise Solutions:

Quick Links to navigate these solutions by chapter
complete-check-img Indicates 100% completion of all exercises for that chapter

Checkpoint Answers

Checkpoint Questions at the end of each chapter

Self-Check Quiz's

Self-Check Quiz's are provided for self testing and reinforcing what you leaned in the chapter

intro-to-java-programming's People

Contributors

amralgendi avatar harrydulaney avatar prottayislive avatar sahilkumar19 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

intro-to-java-programming's Issues

Change in the existing solulion of Exercise18_02 of ch_18

given solution is completely right ...but here is the more optimized solulion without using any loop after solving the recurrence relation of the fibonacci number we will get a direct formula to get the nth fibonacci term. On further solving the formula we will get the time complexity of this program as golden ration raised to the power n which is equal to O(1.6180)^n.

Issue

  • Three constants named SLOW, MEDIUM, and FAST with the values 1, 2, and 3 to denote the fan speed.
    From line 48 to 50
    In question, they say declare three constants but you write protected static instead of final keyword. This is a mistake or you write this due to any specific reason?

protected static int SLOW = 1;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.