Git Product home page Git Product logo

Comments (3)

damithc avatar damithc commented on August 28, 2024

When using the I/O method of testing, you should not create multiple scanners. Reason: all input text (given in one shot via the file) is swallowed by the first Scanner, leaving nothing for the subsequent scanners.

from forum.

damithc avatar damithc commented on August 28, 2024

On a general note, the current code is tailored for a CLI interface where each command is stand-alone. Prompting for user input is hard to fit into the current code base, unless you put the code somewhere it doesn't belong, such as what you have done. :-p i.e. Interacting with the user should not be done in one place rather than all over the code base.
EDIT: should not be -> should not be

from forum.

bokwoon95 avatar bokwoon95 commented on August 28, 2024

Oh yeah I tried to get the existing system to accept user inputs one by one, but found it too complicated to modify (hence the cheap hack with creating a new class to tack onto the existing 'add person' method).

from forum.

Related Issues (20)

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.