Code Monkey home page Code Monkey logo

javatutorialquestions's People

Contributors

abhinandshibu avatar acowusu avatar afd avatar expectocode avatar kashparty avatar sonnyzxc 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

Watchers

 avatar  avatar  avatar

javatutorialquestions's Issues

Possibly use Stack instead of Deque in 2d33

In problem 2d33, a Deque (via ArrayDeque) was recommended for reversing the order of line inputs the user gives.

Would it not make more sense to directly use a Stack instance (from java.util, since Java 7), as the question wording even implies this:

and provides the functionality of a stack: push and pop operations

And mention Queues and Deques as an aside instead?

Issues in second solution of 0c21

The second solution says

Make interfaces Detached, SemiDetached, and Terraced. Keep Bungalow as an abstract class that extends House. Then have DetachedHouse extend House and implement Detached, and have DetachedBungalow extend Bungalow and implement Detached (the setup for the semi-detached and terraced property types is analogous). You might benefit from drawing a class diagram for this arrangement.

According to the solution above, TerracedBungalow is extending an abstract class Bungalow and implementing an interface Terraced while TerracedHouse is extending an abstract class House and implementing an interface Terraced.
Hence, TerracedBungalow isn't an instance of TerracedHouse while the question claims that TerracedBungalow 'is-a' TerracedHouse (since it says that PropertyCollection has 1020 terraced houses).

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.